01-14-2013 11:35 PM
My app freezes which is using html5 audio tag. I am geting error "this media file is of an unsupported format or could not be loaded BB 10 simulator."
01-16-2013 09:31 AM
Not all media is currently supported by HTML5 audio tag. If you find the type of media you are supplyin is not supported consider providing an alternate tag. You can list them as follows:
<source src="http://example.com/mysong.aac"> <source src="mysong.oga">
You can see more about supported types here when loading this page: http://html5test.com/ in the browser:
From this listing you can see that we support: PCM,AAC,MP3,Ogg for audio. For video we have MPEG-4, H.264 support.
01-16-2013 12:21 PM
But I am using mp3 format. Why it isn't playing although it is supported. I tried to test html audio on BB 10 alpha device web browser but it's still not playing . I opened this link in tryedit editor,
01-16-2013 02:00 PM
Try this out and tell me if you get the same results? http://jsfiddle.net/lastrose/vkMqR/
It works fine for me. That W3C schools link is not reccomended . I don't trust their servers and think that it may indeed be a server error sending media since I can't play it in FF. Let me know if that works?
01-16-2013 04:43 PM
Where did you check this code alpha device or simulator ? Because I have tested it on simulator but still getting the same audio codec error "there was an an error decoding this media the media format may not be supported.
01-16-2013 04:52 PM
This could be support missing in the simulator. I tried it on device. Give it a shot on a dev alpha if you have one.