try {
MediaPlayer player = new MediaPlayer();
player.setAudioStreamType(AudioManager.STREAM_MUSIC);
player.setDataSource("server mp3 link" );
player.prepare();
player.start();
} catch (Exception e) {
// TODO: handle exception
}
MediaPlayer player = new MediaPlayer();
player.setAudioStreamType(AudioManager.STREAM_MUSIC);
player.setDataSource("server mp3 link" );
player.prepare();
player.start();
} catch (Exception e) {
// TODO: handle exception
}
No comments:
Post a Comment