colthreepv / colthreepv/angular-media-player
Android Browser Requires User Interaction before Playing Audio
- Dominant language
- JavaScript
- Stars
- 228
- Forks
- 69
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
No contributing guide indexed for this repository
Research direction
No source files, tests, or entry points are named. Start by reading the referenced Blink media-playback restrictions article and inspecting the library's audio/video directive for user-interaction handling; done means the proposed workaround is supported for Android browsers without requiring playback at the initial gesture.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angularjs, javascript
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100