Embedded auto play youtube video no longer plays
Reported by
agarip...@gmail.com,
Jan 2 2018
|
|||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3309.0 Safari/537.36 Steps to reproduce the problem: 1. Go to https://www.behance.net/live What is the expected behavior? Live and replay youtube videos should auto play with sound. What went wrong? The embedded youtube player no longer auto plays videos with sound via the javascript api. When we tell the player to mute the sound the video auto plays. For live streaming we need the video to auto play Adobe Live Streams with sound. Did this work before? Yes 63.0.3239.108 Chrome version: 65.0.3309.0 Channel: canary OS Version: OS X 10.12.6 Flash Version:
,
Jan 2 2018
,
Jan 2 2018
Mounir, is this an expected change in behavior? This seems related to your r526241. FWIW, setting chrome://flags/#autoplay-policy to "No user gesture is required" seems to fix this issue. (I initially thought this might be related to site isolation trials on canary, but it also happens in our control group.)
,
Jan 2 2018
Same issue on youtube https://www.youtube.com/watch?v=D8wdC_erOTw I also briefly see this error message. See attached image. "If playback does not begin shortly try restarting your device" Setting the flag chrome://flags/#autoplay-policy to "no user gesture is required" fixes it.
,
Jan 2 2018
Image did not attach before.
,
Jan 3 2018
agaripian@ Thanks for the issue. Able to reproduce this issue on Windows 10, Mac OS 10.12.6 and Ubuntu 14.04 on the latest Canary 65.0.3309.0 by following the steps mentioned in the original comment. Bisect Information: ==================== Good Build: 65.0.3305.0 (Revision - 526188) Bad Build : 65.0.3306.0 (Revision - 526248) On executing the per-revision bisect script, below is the changelog URL. Changelog URL: --------------- https://chromium.googlesource.com/chromium/src/+log/be45e8e1e3924a788ff72dcc5ecb6ef8264ebe8a..12c615ca3716162f32341c597d581b3a6d6b7f95 From the above Changelog URL, suspecting the below change for this issue. Reviewed-on: https://chromium-review.googlesource.com/817739 Adding ReleaseBlock-Stable as this is a recent Regression. Please feel free to remove the same if this is not applicable. Thanks...
,
Jan 3 2018
This is an expected behaviour: Chrome Canary has new autoplay limitations.
,
Jan 3 2018
When a user clicks on a video on the right side under "More Replays" on https://www.behance.net/live should auto play the video since its user initiated. Safari 11 respects the user's click on a video and autoplays it properly. Another issue related Youtube... Pasting this url into Safari 11 will autoplay the video. https://www.youtube.com/watch?v=D8wdC_erOTw Pasting the same url into Chrome 65 will not auto play the video. Safari 11 seems to have a whitelist of sites that should auto play videos. With this new policy in place how do you expect websites to live stream videos with sound?
,
Jan 3 2018
For behance.net, the video players are YouTube iframes and they would be allowed to autoplay if the websites (behance.net) delegates autoplay privileges to it. Safari indeed allows youtube.com and other websites to autoplay automatically but this is not something Chrome is currently doing. I do not see why this would prevent live streams though.
,
Jan 3 2018
Oh interesting... I found https://developers.google.com/web/updates/2017/09/autoplay-policy-changes#iframe which seems to be fairly new. I still have not figured out how to make the YouTube iframe API append allow="autoplay" to the youtube iframe on behance.net. I wonder if the youTube team has to update their API to support these new features. https://github.com/WICG/feature-policy/blob/gh-pages/features.md @mlamouri@chromium.org if you have any ideas on how to do this that would be great. Manually adding allow="autoplay" to the iframe via the dom does work. <iframe src="myvideo.html" allow="autoplay">
,
Jan 3 2018
Posted here as well for Youtube Iframe api support: https://stackoverflow.com/questions/48086769/youtube-iframe-api-allow-autoplay-chrome-65
,
Jan 5 2018
YouTube has been looking at the issue and we hope that a fix will be live soon. Someone in Chrome will most likely update the stackoverflow question when things are sorted out.
,
Jan 5 2018
Great thank you @mlamouri! Also, can you confirm this will only impact Chrome 65? I just tested the Beta build of Chrome Version 64.0.3282.71 and the video autoplays just fine with sound.
,
Jan 5 2018
This should only impact Chrome 65 indeed. We turned on the new autoplay policy on this version of Chrome.
,
Feb 9 2018
@mlamouri Have you heard any updates on this? I have not seen a response from the YouTube team yet. Thanks again for all the help!
,
Feb 12 2018
The YT IFrame API was updated to use allow=autoplay instead of gesture=media. It should now work as expected.
,
Feb 17 2018
I can confirm the youtube api fix is now working with chrome 65 and `autoplay:1` setting. Thank you for all the help!
,
Mar 19 2018
@mlamouri seems like this doesn't work in Chrome 66. When `autoplay: 1` is set and the video has audio it won't auto play anymore. Also did Chrome 65 go live with this change? Since 65 is stable now.
,
Mar 19 2018
Are you trying to autoplay on page load?
,
Mar 19 2018
@mlamouri yes correct, autoplay on page load. Muting solves the issue but removes the "live" aspect of the experience. Its trying to autoplay on page load to show the live content that is being streamed.
,
Mar 20 2018
Chrome no longer supports autoplay on page load by default as explained in https://developers.google.com/web/updates/2017/09/autoplay-policy-changes
,
Mar 20 2018
@mlamouri thanks for the help but I still don't understand why the policy doesn't impact youtube. Chrome 66 won't autoplay these links when you click on them with a new fresh user profile that has no media engagement. https://www.mlb.com/video/matzs-strong-outing/c-1891357183 https://www.yahoo.com/news/costco-crooks-getaway-habit-helped-110748839.html http://abc7ny.com/traffic/last-call-mta-phasing-out-bar-carts-on-lirr-platforms/3234371/ https://www.behance.net/live (youtube embed) However, Youtube seems to have no issues autoplaying videos when I go directly to any of these links below: https://www.youtube.com/watch?v=cCOL7MC4Pl0 https://www.youtube.com/watch?v=GekQqFZm7mA How come youtube is not impacted by this autoplay policy?
,
Mar 20 2018
Also by direct I mean copy and pasting the links into the url bar. |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by dtapu...@chromium.org
, Jan 2 2018