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

Android Browser Requires User Interaction before Playing Audio #58

Open
lylepratt opened this issue Sep 18, 2014 · 0 comments
Open

Android Browser Requires User Interaction before Playing Audio #58

lylepratt opened this issue Sep 18, 2014 · 0 comments

Comments

@lylepratt
Copy link

Reference:
http://blog.foolip.org/2014/02/10/media-playback-restrictions-in-blink/

Workaround:
However, I’ve also found a workaround for current browsers. As of WebKit r108831, all restrictions are removed in the first successful load() or play() call. Any user gesture is accepted, so one can listen to all input events and remove the restrictions as soon as the user clicks, touches or uses the keyboard. One does not need to start playback at that point, but can wait until a later time. For example, one could “liberate” a number of audio elements for later use in a game.

Thoughts? Can we build this into this library?

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

1 participant