ios - HTML5 Audio iPAD, Cannot play audio file ? -
i got little issue
i'm trying play audio files on webview html5 on ipad simulator, got code this:
<audio controls="controls" format="mp3 ogg"> <source src="test.ogg" /> <source src="test.mp3" /> </audio> but got "cannot play audio file" on black bar on control :/
someone idea why ?
of course test.mp3 , test.ogg added in xcode project , in same directory
thanks
format attribute in audio doesn't makes sense. should use type attribute in source tag.
see example:
<source src="test.ogg" type="audio/ogg" /> <source src="test.mp3" type="audio/mpeg" /> this working in ipad.
Comments
Post a Comment