BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Media Center (http://www.blackberryforums.com/media-center/)
-   -   Playing live radio over Http (http://www.blackberryforums.com/media-center/249405-playing-live-radio-over-http.html)

javalis 05-27-2011 09:43 AM

Playing live radio over Http
 
hi all.
I'm building a Java app. in which I need to play live radio stations and tv over http.
I couldn't find any suitable example on how to do this, can anyone please point me in the right direction?

so far I've try using javax.microedition.media.Player for opening a remote URL from which I should get the streaming.
Player p = Manager.createPlayer("...."); player.start();
I'm aware that this kind of connection are not available through BIS, nut I've attepmted to open it through a regular data plan (APN) and I always get an exception "media unloaded while initializing"; this occurs right after the player is realized and befor starting.

I get this exception on the actual device.

I appreciate any help.

thanks.

javalis 05-31-2011 07:19 AM

Re: Playing live radio over Http
 
Hi, this is an autoanswer to my previous posting.

Basically the streaming is pretty strait forward, and it is a seasy as create a player and then start it as I've mentioned above.
This exception occurs because the stream channel has a format that is not supported by the device; if the streaming server produces the streaming in a format which is supported by the device, it will works.


All times are GMT -5. The time now is 12:20 AM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.