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

Posts: 10
Registered: ‎11-30-2011
My Device: curve 8520
Accepted Solution

Playbook HTML5 audio problem (streaming problem?)

[ Edited ]

Hi. I am working on a simple application using HTML5 audio tag. I deploy the application in virtual Playbook (BlackBerry WebWorks SDK for TabletOS - 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"
    	A sample application to demostrate some of the possibilities.
	    Example 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"/>


My index.html:


<!DOCTYPE html>
<title>audio testing live stream!</title>
		REMOTE RADIO (works on playbook browser)
		<audio controls="controls"

		MP3 (local file)
		<audio controls="controls" src="default.mp3">

		<audio controls="controls">
				src="http://upload.wikimedia.org/wikipedia/commons/a/a3/Epro_theremin_middle_bach.ogg" />


Remote stream (shoutcast radio) and Remote file (ogg, http://blackberry.github.com/WebWorks-Samples/kitchenSink/html/html5/audio.html) not work on HTML5 app.


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?


Posts: 134
Registered: ‎05-19-2012
My Device: Torch 9800, PlayBook 64GB, Dev Alpha

Re: Playbook HTML5 audio problem (streaming problem?)

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

If I helped you please click the "Like" button to support my work.
My apps: CherryNotes - Bookmarked - Requests
Social Me: about.me - Twitter
Posts: 10
Registered: ‎11-30-2011
My Device: curve 8520

Re: Playbook HTML5 audio problem (streaming problem?)

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/kitchenSink/html/html5/audio.html


Posts: 10
Registered: ‎11-30-2011
My Device: curve 8520

Re: Playbook HTML5 audio problem (streaming problem?)

Now I know what was my error: The URL does not contain a stream, only a playlist (PLS) with many URL's to access the stream. For more details you can check: