Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 80652ddb authored by Hyundo Moon's avatar Hyundo Moon Committed by Android (Google) Code Review
Browse files

Merge "MediaSession2: Complete transport control commands"

parents c2c8acf5 78600c1a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ public interface MediaPlayerInterface {
    void skipToPrevious();
    void skipToNext();
    void seekTo(long pos);
    void fastFoward();
    void fastForward();
    void rewind();

    PlaybackState2 getPlaybackState();
+5 −0
Original line number Diff line number Diff line
@@ -230,6 +230,11 @@ public class MediaSession2 implements AutoCloseable {
            mCommands.add(new Command(COMMAND_CODE_PLAYBACK_STOP));
            mCommands.add(new Command(COMMAND_CODE_PLAYBACK_SKIP_NEXT_ITEM));
            mCommands.add(new Command(COMMAND_CODE_PLAYBACK_SKIP_PREV_ITEM));
            mCommands.add(new Command(COMMAND_CODE_PLAYBACK_PREPARE));
            mCommands.add(new Command(COMMAND_CODE_PLAYBACK_FAST_FORWARD));
            mCommands.add(new Command(COMMAND_CODE_PLAYBACK_REWIND));
            mCommands.add(new Command(COMMAND_CODE_PLAYBACK_SEEK_TO));
            mCommands.add(new Command(COMMAND_CODE_PLAYBACK_SET_CURRENT_PLAYLIST_ITEM));
        }

        public void removeCommand(Command command) {