Extract metadata from audio stream
I developing an online radio app. The app plays the streams by giving a url to to Player object:
player = javax.microedition.media.Manager.createPlayer(url)
How can I extr开发者_StackOverflow中文版act the metadata like song name and artist name from the stream? I am developing using BlackBerry OS 5.
I am afraid you cannot do that. There is no API afaik which gives you that information.
You can attach PlayerListener to a player and get information about many kinds of events(start,stop,update playback time,error and other events) but there is no event which tells you the name of the song.
Are you using rtsp:// url?
精彩评论