MediaPlayer2: implement skipToNext
Test: cts Bug: 112549021 Change-Id: Ibaf1fad4166c0c48058489f3d3d29dcda9a90d52
This commit is contained in:
@@ -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