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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -