Bug 134200
| Summary: | HTML5 audio does not play in iOS 8 web view | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ashley Gullen <ashley> |
| Component: | Media | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | benjamin, eric.carlson, jeremyj-wk, jer.noble, jonlee |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | iPhone / iPad | ||
| OS: | Other | ||
Ashley Gullen
In the iOS 8 web view, HTML5 audio does not play, even in a user input event. (Safari on iOS requires a user gesture for HTML5 audio playback to begin; this does not work in the web view.)
The Web Audio API works, but HTML5 audio does not, even if routed through the Web Audio API with createMediaElementSource().
This is important so apps using PhoneGap can play audio.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Jon Lee
Do you have a sample test page that shows the issue?
Eric Carlson
This may have been fixed by http://trac.webkit.org/changeset/169867, but we need an example app to make certain.
Ashley Gullen
To repro, point a web view at this URL: http://www.scirra.com/labs/spaceblaster/
In Safari, it should play music on both the title screen and in-game (after a touch).
In the web view on iOS 8 beta 2, I never hear any music, although I hear sound effects (which are played with the Web Audio API instead of HTML5 audio).
Ashley Gullen
Additional minimal repro: https://dl.dropboxusercontent.com/u/15217362/webviewaudiotest.zip
That should be directly uploadable to PhoneGap Build.
iOS doesn't show the buttons properly: the top button plays HTML5 audio with a local (package) source, and the bottom with a HTTP server source. Neither works.
Ashley Gullen
Appears fixed in iOS 8 beta 3. Thanks!