Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Contributor
rohitmaurya
Posts: 9
Registered: ‎01-07-2013
My Device: alpha
My Carrier: NA

this media file is of an unsupported format or could not be loaded BB 10 simulator

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."

Please use plain text.
BlackBerry Development Advisor (Retired)
erikjohnzon
Posts: 245
Registered: ‎09-21-2012
My Device: Q10
My Carrier: Virgin

Re: this media file is of an unsupported format or could not be loaded BB 10 simulator

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.

@erikjohnzon
erjohnson@blackberry.com
Please use plain text.
New Contributor
rohitmaurya
Posts: 9
Registered: ‎01-07-2013
My Device: alpha
My Carrier: NA

Re: this media file is of an unsupported format or could not be loaded BB 10 simulator

Thx Eric.

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,

 

 http://www.w3schools.com/html/tryit.asp?filename=tryhtml5_audio_all

 

Please use plain text.
BlackBerry Development Advisor (Retired)
erikjohnzon
Posts: 245
Registered: ‎09-21-2012
My Device: Q10
My Carrier: Virgin

Re: this media file is of an unsupported format or could not be loaded BB 10 simulator

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 :smileyhappy:. 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?

@erikjohnzon
erjohnson@blackberry.com
Please use plain text.
New Contributor
rohitmaurya
Posts: 9
Registered: ‎01-07-2013
My Device: alpha
My Carrier: NA

Re: this media file is of an unsupported format or could not be loaded BB 10 simulator

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.

Thx .

Please use plain text.
New Contributor
rohitmaurya
Posts: 9
Registered: ‎01-07-2013
My Device: alpha
My Carrier: NA

Re: this media file is of an unsupported format or could not be loaded BB 10 simulator

Here is a snapshot of the error.

 

http://imageshack.us/photo/my-images/834/aud1m.png/

Please use plain text.
BlackBerry Development Advisor (Retired)
erikjohnzon
Posts: 245
Registered: ‎09-21-2012
My Device: Q10
My Carrier: Virgin

Re: this media file is of an unsupported format or could not be loaded BB 10 simulator

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.

@erikjohnzon
erjohnson@blackberry.com
Please use plain text.
New Contributor
rohitmaurya
Posts: 9
Registered: ‎01-07-2013
My Device: alpha
My Carrier: NA

Re: this media file is of an unsupported format or could not be loaded BB 10 simulator

code seems to play but no audio is coming and no volume controls . :smileysad:

Thx .

Please use plain text.
BlackBerry Development Advisor (Retired)
erikjohnzon
Posts: 245
Registered: ‎09-21-2012
My Device: Q10
My Carrier: Virgin

Re: this media file is of an unsupported format or could not be loaded BB 10 simulator

Issue has been filed internally. Will be fixed in next Dev Alpha version.

@erikjohnzon
erjohnson@blackberry.com
Please use plain text.