Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
Regular Visitor
jasonson
Posts: 1
Registered: 02-08-2012
My Carrier: Telus

Playing MP3 Using Object Tags

Was Wondering if Webworks supports embeding via object tags. I embeded my MP3 into my Webworks app using object tags, but they do not play when using the Ripple Emulator or Playbook Simulator. Here's the code that I was using:

 

<object width="44%" height="2%" id="m1">
<param name="movie" value="Audio/Song1.mp3"/>
<param name="allowScriptAccess" value="always"/>
<param name="allowDomain" value="*"/>
<embed allowdomain="*" name="m1" src="Audio/Song1.mp3" width="44%" height="2%"false" allowScriptAccess="always"></embed>
</object>

 

This method works with all of my desktop web browsers though. I was wondering if this was a limitation of the emulators, or if this wouldn't work with the playbook.

 

Thanks

 

Please use plain text.
Trusted Contributor
SumiGhosh
Posts: 181
Registered: 09-20-2011
My Carrier: Developer

Re: Playing MP3 Using Object Tags

I think simulators are not embedded with codecs to play either audio or video. You can use html5 audio or video tag instead of object.

Please use plain text.