New issue
Advanced search Search tips

Issue 765667 link

Starred by 4 users

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac
Pri: 3
Type: Bug



Sign in to add a comment

Document effect (or lack thereof) of new autoplay policy on WebAudio

Reported by andi.m.m...@gmail.com, Sep 15 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36

Steps to reproduce the problem:
This bug concerns Chromium documentation and public messaging.

What is the expected behavior?
Chromium has published several things today regarding autoplaying "media" in the browser:
https://blog.chromium.org/2017/09/unified-autoplay.html
https://sites.google.com/a/chromium.org/dev/audio-video/autoplay
The upshot is media ("video and audio") autoplay will be limited unless there is user interaction.

The documentation implies (but does not state) that this applies to <video> and <audio> DOM elements, in other words, "media elements" (4.7.10 in the HTML5 spec I guess?). It does not give any indication whether WebAudio operations, ie, operations on an AudioContext, are affected.

What went wrong?
The wiki page and/or blog post linked above should either explain what the impact on WebAudio is (including operations on the object returned by AudioContext.createMediaElementSource), or, if there is no such impact, explicitly say so. Alternately, explicitly state in your public messaging how you define "media" (ie "'media elements' as defined in the html5 spec and methods on their DOM objects…) so it is clear whether WebAudio is covered by your definition.

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 60.0.3112.113  Channel: stable
OS Version: OS X 10.12.6
Flash Version: 

I am concerned about this because I make audiovisual web art (example: http://dryad.technology/moiresea/ warning some flashing) and already must deal with complex autoplay related restrictions on WebAudio in Apple browsers. If Chrome ever begins to introduce such restrictions, I would like advance warning.
 
Labels: -Pri-2 OS-Android OS-Linux OS-Windows Pri-3
Owner: hongchan@chromium.org
Status: Assigned (was: Unconfirmed)
We currently do not have a concrete timeline for it, but it will be announced via https://www.chromestatus.com/features. Also I will update this bug when we made the decision.
Hi we use WebAudio same for a corporate media player which by its nature does require autoplay. Most of our clients use Android devices , will there be a way via chrome flags to disable this policy ? Please advise if that is not going to happen as we will probably have to discontinue supporting Chrome.
Cc: mlamouri@chromium.org
olaf.stelling@

Are you using WebAudio or audio element in your media player?

mlamouri@

Do you have an answer for #2?
mlamouri

We are using AudioContex.createMediaElementSource and then chain in gain and compressor nodes. We are actually using 2 of these chains going to the same audio output to deliver pre-emptive messaging as well. Currently we only support Chrome for web based delivery as Chrome has the persistent file system which we use to store audio locally as a lot of our clients are in areas were streaming would be too expensive and too unreliable.
Cc: -mlamouri@chromium.org
Labels: needs
Owner: mlamouri@chromium.org
Autoplay has been handled by mlamouri@, so reassigning this issue.
Note: There has been no movement on this bug, but since the last update the feature has shipped and documentation has been posted

https://developers.google.com/web/updates/2017/09/autoplay-policy-changes

Still doesn't answer all my questions though (for example what about createMediaElementSource …)
Components: Blink>Media>Autoplay
Labels: -needs OS-Chrome
I have received no acknowledgement of my comments either here, or sent to the Twitter account, or on the other popular bug on this issue. So I would just like to reiterate my outstanding problems with the documentation from the other popular bug https://bugs.chromium.org/p/chromium/issues/detail?id=840866#c110

- The documentation treats <audio> elements and WebAudio as strictly separate concerns. This is not really the case, they can interact. For clarity, you should explicitly document the behavior of audio objects (eg new Audio()) and createMediaElementSource wrt autoplay.

- You should explicitly document what conditions enable use of WebAudio. The document says "user interacts with the page (e.g., user clicked a button)" and "the document received a user gesture". This is vague. Give us a list of qualifying events. Also, does "alert()"/"prompt()" count as interaction? If not, why not?

- The document near the top says: "Autoplay with sound is allowed if: User has interacted with the domain (click, tap, etc.)." What does this mean? In my testing with Chrome 66, it appears it means that if you click a link from one page on a site to another, autoplay permissions are granted until the tab closes and then are lost on the next visit. This seems to kind of suck as a policy (just because I clicked a link on CNN.com doesn't mean I want CNN to play a video) but you need to clearly document it. Does this magic work with anchor links? Does it work with javascript: links? If I trigger Javascript from a click to trigger location.reload() do I get to keep autoplay permissions when the page reloads?

Also there are flagrant spelling/grammar errors. I realize spelling errors do not objectively matter but it is a very, very clear sign that y'all are not putting effort into improving these docs. It could not possibly be hard just to jump in and add that missing letter "h", which says to me that you're not making changes at all right now for whatever reason.

Sign in to add a comment