Playing live radio over Http
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.
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 08:05 PM.|
Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.