Not auto-play multiple videos simultaneously in one page |
|||
Issue descriptionAccording to https://www.w3schools.com/tags/att_video_autoplay.asp, a video with autoplay attribute would start as soon as it can do so without stopping. I open a simple page which has four videos, example.html. The first video would start immediately in loading the page. The other videos doesn't start playing. Twenty seconds pass after the first video starts, those kick off playback. Is this an intended behavior of Chromium? In addition, I sometimes observed starting playback them at the same time. It seems at random. I open the same page with Firefox. They start playing at the same time just after loading.
,
May 1 2018
beccahughes@, may I ask you to triage this bug and assign to an appropriate owner? Thanks
,
May 1 2018
What version of Chrome is this? If I try your page in 68.0.3417.0 we block autoplay on all four videos which is expected. If I force enable autoplay then all four videos autoplay.
,
May 1 2018
Sorry I had to provide the information. Chrome: 66.0.3359.139 OS: Linux
,
May 1 2018
I cannot replicate this on 66.0.3359.139 Linux. Do you have any messages in the JS console?
,
May 1 2018
There is no log in console. What I do is to 1. put example.html and 144.webm in the same directory. 2. python -m SimpleHTTPServer 3. access localhost:8000/example.html What is wrong?
,
May 1 2018
This is the python test server blocking on serving the video files. If you use another test server it works fine.
,
May 1 2018
Got it. Thank you.
,
May 2 2018
I have two questions. Q1. What test server are you using? Q2. Why does playback kick off when accessing using Firefox?
,
May 2 2018
1. A nodejs command called serve 2. I am not sure, maybe it has something to do with loading?
,
May 9 2018
I confirmed this is not observed with nodjs http-server. However, could you access this page? This is a typical web app running google cloud. http://crosvideo2.appspot.com/multivideo.html?resolution=144 I observed the similar behavior on the site. What do you think?
,
May 9 2018
We have started blocking unmuted autoplay but default. Are you overriding the autoplay policy switch for your tests?
,
May 9 2018
I am not sure if I can get #c12. That means, chrome blocks autoplay video which has sound? What do you mean, "Are you overriding the autoplay policy switch for your tests?"
,
May 10 2018
Seems like you mean this. https://developers.google.com/web/updates/2017/09/autoplay-policy-changes
,
Jun 4 2018
Sorry for updating late. I disabled #autoplay-policy and played http://crosvideo2.appspot.com/multivideo.html?count=2&resolution=144. The video playbacks are not kicked off at the same time. Could you check the behavior? Thanks. |
|||
►
Sign in to add a comment |
|||
Comment 1 by hiroh@chromium.org
, Apr 27 2018