06-08-2012 09:02 PM - edited 06-08-2012 09:06 PM
Hi. I am working on a simple application using HTML5 audio tag. I deploy the application in virtual Playbook (BlackBerry WebWorks SDK for TabletOS 2.2.0.5 - BlackBerryPlayBookSimulator-1.0.7)
This is my config.xml:
<?xml version="1.0" encoding="UTF-8"?> <widget xmlns="http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="1.0.0.0"> <name>Radio</name> <description> A sample application to demostrate some of the possibilities. </description> <author> CESAR </author> <license> Example license. </license> <feature id="blackberry.ui.dialog"/> <feature id="blackberry.app.event"/> <content src="index.html" /> <icon rim:hover="false" src="icon-face-monkey.png"/> <access uri="*" subdomains="true"/> </widget>
My index.html:
<!DOCTYPE html> <html> <head> <title>audio testing live stream!</title> </head> <body> <p> REMOTE RADIO (works on playbook browser) <audio controls="controls" src="http://yp.shoutcast.com/sbin/tunein-station.pls?id=737152&play_status=1"> </audio> </p> <p> MP3 (local file) <audio controls="controls" src="default.mp3"> </audio> </p> <p> REMOTE FILE <audio controls="controls"> <source src="http://upload.wikimedia.org/wikipedia/commons/a/a3 /Epro_theremin_middle_bach.ogg" /> </audio> </p> </body> </html>
Remote stream (shoutcast radio) and Remote file (ogg, http://blackberry.github.com/WebWorks-Samples/kitc
In remote stream the error was: "There was an error decoding this media. The media format not be supported".
What is wrong?
What can I do?
Solved! Go to Solution.
06-10-2012 09:31 AM
The problem on the remote stream part of your code is that it's fetching a *.pls (playlist) file, which is not supported by HTML5 Audio. If you want to know about format support on HTML5 Audio I highly suggest you to read this awesome piece called On HTML5 Audio Formats.
If I was helpful please click the Like button to support my work. ![]()
06-11-2012 11:35 AM
But in Firefox, Chrome and Playbook Browsers this works, and I test other streams and is the same problem (failed tests).
I think my app should have similar functionality to the Playbook Browser.
I test what is supported with: http://jplayer.org/HTML5.Audio.Support/
And I did these examples (only remote files, local files are ok) but is the same problem: http://blackberry.github.com/WebWorks-Samples/kitc
06-13-2012 08:39 PM