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

Java Development

Reply
Developer
Posts: 402
Registered: ‎11-26-2010
My Device: Torch

Live streaming and meta radio data

I know that you can stream live radio stations through HTTP and RTSP by providing a direct link to the player in the API but I have seen quite a few applications in the market which not only stream radio but also show meta information like:

- current song name

- radio name

- song duration

- radio logo

etc.

 

So I was wondering how does a certain app extract all that information? Does it parse the RTSP stream and extract it from there or another approach is used?

----------------------------------------------------------------------
Press the button to give kudos if I helped you Smiley Happy
Highlighted
Retired
Posts: 76
Registered: ‎07-11-2008
My Device: Z10
My Carrier: SingTel

Re: Live streaming and meta radio data

[ Edited ]

Yes, those apps typically use a Streaming Player API type of implementation as outlined in this blog article and the KB on Streaming media Start to Finish: http://devblog.blackberry.com/2010/05/streaming-player-api/. With this implementation the app itself provides the SourceStream to the java api player, and thus, any type of metadata (Artist Info, Album Art, etc) can be embedded within the stream, and extracted by the app before feeding it to the native java player.

 

You can also utilize the MetaDataControl class. More on that explained here: 
http://supportforums.blackberry.com/t5/Java-Development/Everything-You-Want-To-Know-About-Multimedia...

Sarim
BlackBerry Development Advisor
www.BlackBerryDeveloper.com