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

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

Posts: 10
Registered: ‎11-30-2011
My Device: curve 8520
My Carrier: telcel
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
My Carrier: VIVO Brazil

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. Smiley Happy

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
My Carrier: telcel

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
My Carrier: telcel

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: