Merge "MediaPlayer2: implement skipToNext"
This commit is contained in:
committed by
Android (Google) Code Review
commit
2b435884bd
@@ -271,7 +271,10 @@ public final class MediaPlayer2Impl extends MediaPlayer2 {
|
||||
addTask(new Task(CALL_COMPLETED_SKIP_TO_NEXT, false) {
|
||||
@Override
|
||||
void process() {
|
||||
// TODO: switch to next data source and play
|
||||
if (getState() == PLAYER_STATE_PLAYING) {
|
||||
pause();
|
||||
}
|
||||
playNextDataSource();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user