I want to make radio player example but i have some errors. I can't fix it.
My Source Code
String url = ""; //Shoutcast Radio URL
mp = new MediaPlayer();
mp.setAudioStreamType(AudioManager.STREAM_MUSIC);
try {
mp.setDataSource(url);
mp.prepare();
} catch (IllegalArgumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SecurityException e) {
// TODO Auto-generated catch block
Log.e(TAG, "SecurityException");
} catch (IllegalStateException e) {
// TODO Auto-generated catch block
Log.e(TAG, "IllegalStateException");
} catch (IOException e) {
// TODO Auto-generated catch block
Log.e(TAG, "IOException");
}
My Error (Logcat)
E/MediaPlayer﹕ Should have subtitle controller already set
W/MediaPlayer﹕ info/warning (703, 203)
W/MediaPlayer﹕ info/warning (701, 0)
W/MediaPlayer﹕ info/warning (702, 0)
W/MediaPlayer﹕ info/warning (702, 0)