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
Contributor
oresistemas
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 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/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?

 

Developer
nathanpc
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
Contributor
oresistemas
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


 

Contributor
oresistemas
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:

http://en.wikipedia.org/wiki/PLS_%28file_format%29