I want to play this radio in my android app: http://www.voadeewaradio.com/ where it says "LIVE AUDIO"
I went in the source code for that page, I found the link that plays the radio, its .asx format:
<a href="http://www.voanews.com/wm/live/radiodeewa.asx">Live Audio</a>
I used Cocsoft StreamDown to chagne the .asx format to a normal url:port which will then be read by
player.setDataSource("mms://a1314.l211036239.c2110.g.lm.akamaistream.net/D/1314/2110/v0001/reflector:36239");
And as you can see Cocsoft StreamDown gave me the link above, which when I paste in a browser, it opens the radio in mediaplayer. Though however in android this link doesnt work.
First, instead of hard-coding the URL into your application, simply read the .asx
-file and parse the URL from it, it's a simple XML format.
This way, you won't need to update your application if the stream-URL changes.
For the playback of MMS streams, this is not supported by Android's MediaPlayer
. You'll need a third-party library to do that: Java library to read a Microsoft Media Server (MMS) stream