New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 798437 link

Starred by 5 users

Issue metadata

Status: WontFix
Owner:
Closed: Jan 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 1
Type: Bug-Regression



Sign in to add a comment

Embedded auto play youtube video no longer plays

Reported by agarip...@gmail.com, Jan 2 2018

Issue description

UserAgent: 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:
 
Screen Shot 2018-01-02 at 11.20.26 AM.png
1001 KB View Download
Components: -Blink Blink>Media
Labels: Needs-Bisect Needs-Triage-M65
Cc: dah...@chromium.org
Owner: mlamouri@chromium.org
Status: Assigned (was: Unconfirmed)
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.)
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. 
Image did not attach before.
Screen Shot 2018-01-02 at 4.15.20 PM.png
439 KB View Download
Cc: sc00335...@techmahindra.com
Labels: -Pri-2 -Needs-Bisect ReleaseBlock-Stable Triaged-ET M-65 OS-Linux OS-Windows Pri-1
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...
Status: WontFix (was: Assigned)
This is an expected behaviour: Chrome Canary has new autoplay limitations.
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?
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.
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">
Posted here as well for Youtube Iframe api support: https://stackoverflow.com/questions/48086769/youtube-iframe-api-allow-autoplay-chrome-65
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.
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. 
This should only impact Chrome 65 indeed. We turned on the new autoplay policy on this version of Chrome.
@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!
The YT IFrame API was updated to use allow=autoplay instead of gesture=media. It should now work as expected.
I can confirm the youtube api fix is now working with chrome 65 and `autoplay:1` setting.

Thank you for all the help!
@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.
Are you trying to autoplay on page load?
@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. 
Chrome no longer supports autoplay on page load by default as explained in https://developers.google.com/web/updates/2017/09/autoplay-policy-changes
@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?

Also by direct I mean copy and pasting the links into the url bar. 

Sign in to add a comment