Changing video element source from a MediaStream to a URL allows it to play without user gesture on Android |
|||
Issue descriptionNavigate to https://github.com/avayvod/avayvod.github.io/blob/master/autoplay-video-ms-test.html to see in action (doesn't work on Chrome 51, but seems to work on 52+). The idea would be to lock the element once it switches from the MediaStream source to anything else that usually doesn't autoplay.
,
Jun 22 2016
,
Jun 29 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/49e3b076201542b38774c2137e097f52ea15110f commit 49e3b076201542b38774c2137e097f52ea15110f Author: avayvod <avayvod@chromium.org> Date: Wed Jun 29 11:25:04 2016 Fixes the issue when the media element could be assigned a MediaStream object and then a src= URL that would autoplay as the element was unlocked for MediaStream. BUG= 620319 TEST=manual + a layout test Review-Url: https://codereview.chromium.org/2075563003 Cr-Commit-Position: refs/heads/master@{#402777} [add] https://crrev.com/49e3b076201542b38774c2137e097f52ea15110f/third_party/WebKit/LayoutTests/media/autoplay-from-mediastream-to-src.html [modify] https://crrev.com/49e3b076201542b38774c2137e097f52ea15110f/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
,
Jun 29 2016
|
|||
►
Sign in to add a comment |
|||
Comment 1 by mlamouri@chromium.org
, Jun 15 2016