shoutcast

Android 2.2 MediaPlayer is working fine with one SHOUTcast URL but not with the other one

柔情痞子 提交于 2019-11-26 11:49:55
Please see the code i am using for streaming shoutcast stream, it works with one URL but NOT with the other one. This one works: Uri myUri = Uri.parse("http://fr3.ah.fm:9000/"); But not with this one: Uri myUri = Uri.parse("http://someOtherURL"); SimpleMusicStream.java import android.app.Activity; import android.media.AudioManager; import android.media.MediaPlayer; import android.net.Uri; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; public class SimpleMusicStream extends Activity implements MediaPlayer.OnCompletionListener,

Android 2.2 MediaPlayer is working fine with one SHOUTcast URL but not with the other one

ε祈祈猫儿з 提交于 2019-11-26 03:34:40
问题 Please see the code i am using for streaming shoutcast stream, it works with one URL but NOT with the other one. This one works: Uri myUri = Uri.parse(\"http://fr3.ah.fm:9000/\"); But not with this one: Uri myUri = Uri.parse(\"http://someOtherURL\"); SimpleMusicStream.java import android.app.Activity; import android.media.AudioManager; import android.media.MediaPlayer; import android.net.Uri; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget

Android MediaPlayer works fine in Custom audio Streaming application up to Android 2.1 but not in higher versions

笑着哭i 提交于 2019-11-26 00:55:31
问题 EDIT: Android 2.2 MediaPlayer is working fine with one SHOUTcast URL but not with the other one I need to play audio files from external URLs(shoutcast stream). Currently the audio files are downloaded incrementally & are played as soon as we get enough audio in phone local temporary storage. i am using the StreamingMediaPlayer class. Check this piece of code: private MediaPlayer createMediaPlayer(File mediaFile) throws IOException { MediaPlayer mPlayer = new MediaPlayer(); //example of

Android MediaPlayer works fine in Custom audio Streaming application up to Android 2.1 but not in higher versions

流过昼夜 提交于 2019-11-25 19:42:12
EDIT: Android 2.2 MediaPlayer is working fine with one SHOUTcast URL but not with the other one I need to play audio files from external URLs(shoutcast stream). Currently the audio files are downloaded incrementally & are played as soon as we get enough audio in phone local temporary storage. i am using the StreamingMediaPlayer class . Check this piece of code: private MediaPlayer createMediaPlayer(File mediaFile) throws IOException { MediaPlayer mPlayer = new MediaPlayer(); //example of mediaFile =/data/data/package/cache/playingMedia0.dat FileInputStream fis = new FileInputStream(mediaFile);