Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebAudio and autoplay restrictions #1551

Closed
youennf opened this issue Apr 3, 2018 · 3 comments
Closed

WebAudio and autoplay restrictions #1551

youennf opened this issue Apr 3, 2018 · 3 comments

Comments

@youennf
Copy link

youennf commented Apr 3, 2018

Autoplay restriction rules are more and more controlling whether an AudioContext can be started or not. Typically, it now requires a user gesture.

In WebRTC land, as can be seen in https://bugs.webkit.org/show_bug.cgi?id=180522, WebAudio is usually used only for analysis. But autoplay restrictions are still kicking in.
In WebKit, autoplay restrictions are disabled if getUserMedia capture is on.

If we had something like an analysis-only audio context, it could probably start without being tied to any user gesture. Additionally, since it would not be tied to hardware rendering, it could run in lower priority threads.

@rtoy
Copy link
Member

rtoy commented Apr 12, 2018

From today's WG teleconf, we agreed that we need some clarification here.

The referenced bug seems to want an audio context to be allowed to play if there's no audio output. We agreed that that is not really possible because the graph can be changed dynamically at any time and suddenly connecting some source to the output.

I think an analysis-only context is not something we wish to do now; it would be the next version at the earliest.

@mdjp mdjp added this to the Web Audio v.next milestone Apr 26, 2018
@mdjp
Copy link
Member

mdjp commented Oct 25, 2018

Add 1 field to audioContext options dictionary. Audible/Muted/Analysis only.

@padenot
Copy link
Member

padenot commented Sep 17, 2019

This is tracked in https://github.com/w3c/autoplay/. We're closing this, because the work is going to happen there and not here: no changes is going to be made to any Web Audio API interface.

@padenot padenot closed this as completed Sep 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants