Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to play radio live stream .asx video/x-ms-asf?
    primarykey
    data
    text
    <p>Is there any 3rd-party library in Android or Java that can play radio live stream?</p> <pre><code>File extension: .asx MIME type: video/x-ms-asf </code></pre> <p>Unfortunately, <a href="http://developer.android.com/reference/android/media/MediaPlayer.html" rel="noreferrer">MediaPlayer</a> does not support this format!</p> <p>Here is the url of the live stream: http:// 38.96.148.75 /SunnahAudio</p> <hr> <p><strong>EDIT:</strong></p> <p>I was able to convert <code>.asf</code> file to <code>.mp3</code> file by using <a href="http://www.sauronsoftware.it/projects/jave/index.php" rel="noreferrer">JAVE</a>:</p> <pre><code>File source = new File("sound.asf"); File target = new File("target.mp3"); AudioAttributes audio = new AudioAttributes(); audio.setCodec("libmp3lame"); audio.setBitRate(new Integer(64000)); audio.setChannels(new Integer(1)); audio.setSamplingRate(new Integer(22050)); EncodingAttributes attrs = new EncodingAttributes(); attrs.setFormat("mp3"); attrs.setAudioAttributes(audio); Encoder encoder = new Encoder(); encoder.encode(source, target, attrs); </code></pre> <p>However, I'm streaming the <code>.asf</code> online and I am not sure if I could stream the radio station, convert it to <code>.mp3</code>, and immediately play it!</p> <hr> <p><strong>EDIT2:</strong></p> <p>I offer 500+ rep for anyone provides a full and working solution to play <code>.asf</code> live stream on Android. Basically, I want to play this radio station on Android (as <a href="https://play.google.com/store/apps/details?id=com.android.DroidLiveLite&amp;feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5hbmRyb2lkLkRyb2lkTGl2ZUxpdGUiXQ.." rel="noreferrer"><code>xiialive</code></a> can do):</p> <pre><code>http://38.96.148.75/SunnahAudio </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload