urlstream

Android MediaPlayer java.io.IOException: Prepare failed.: status=0x1

╄→尐↘猪︶ㄣ 提交于 2019-12-07 07:03:29
问题 I am using Android's MediaPlayer to set up a URL stream in my application. I have tried several different posts to deal with the exit code and error: (1, -2147483648). I have attempted several different streams, but I can't seem to get the MediaPlayer to work. I have thought about moving over the Google's ExoPlayer but it is a little more complex and I don't want to jump ship in case I am missing something. MediaPlayer: private MediaPlayer player; String url = "http://199.180.75.118:80/stream

Android MediaPlayer java.io.IOException: Prepare failed.: status=0x1

China☆狼群 提交于 2019-12-05 12:20:27
I am using Android's MediaPlayer to set up a URL stream in my application. I have tried several different posts to deal with the exit code and error: (1, -2147483648). I have attempted several different streams, but I can't seem to get the MediaPlayer to work. I have thought about moving over the Google's ExoPlayer but it is a little more complex and I don't want to jump ship in case I am missing something. MediaPlayer: private MediaPlayer player; String url = "http://199.180.75.118:80/stream"; //temp stream private void initializeMediaPlayer() { player = new MediaPlayer(); player