RESOLVED FIXED 134200
HTML5 audio does not play in iOS 8 web view
https://bugs.webkit.org/show_bug.cgi?id=134200
Summary HTML5 audio does not play in iOS 8 web view
Ashley Gullen
Reported 2014-06-23 11:20:48 PDT
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
Jon Lee
Comment 1 2014-06-23 15:35:31 PDT
Do you have a sample test page that shows the issue?
Eric Carlson
Comment 2 2014-06-23 15:46:52 PDT
This may have been fixed by http://trac.webkit.org/changeset/169867, but we need an example app to make certain.
Ashley Gullen
Comment 3 2014-06-24 05:44:25 PDT
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
Comment 4 2014-06-24 06:55:37 PDT
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
Comment 5 2014-07-15 07:14:42 PDT
Appears fixed in iOS 8 beta 3. Thanks!
Note You need to log in before you can comment on or make changes to this bug.