.m3u", data.getBytes());
Log.v("PlayerExample", "SETTING PLAYLIST " + ID + " in file:
" + data.getBytes());
fileManager.setDataSource(ID, data.getBytes());
mCurrentPlayer = this;
mPlayer.seekTo(0);
if (player!= null) {
player.release();
}
mPlayer = MediaPlayer.create(this, Uri.parse("file:///sdcard/mytest/playlist.m3u"));
try {
mPlayer.setDataSource(ID);
Log.v("PlayerExample", "SETTING PLAYLIST " + ID + " in file:
} catch (IllegalArgumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IllegalStateException e) {
} catch (IOException e) {
Related links:
Comments