2018-03-16 07:42:46 +01:00
|
|
|
package org.schabi.newpipe.player.mediasession;
|
|
|
|
|
|
|
|
import android.support.v4.media.MediaDescriptionCompat;
|
|
|
|
|
|
|
|
public interface MediaSessionCallback {
|
2021-01-08 18:35:33 +01:00
|
|
|
void playPrevious();
|
2020-03-31 19:20:15 +02:00
|
|
|
|
2021-01-08 18:35:33 +01:00
|
|
|
void playNext();
|
2020-03-31 19:20:15 +02:00
|
|
|
|
2021-01-08 18:35:33 +01:00
|
|
|
void playItemAtIndex(int index);
|
2018-03-16 07:42:46 +01:00
|
|
|
|
|
|
|
int getCurrentPlayingIndex();
|
2020-03-31 19:20:15 +02:00
|
|
|
|
2018-03-16 07:42:46 +01:00
|
|
|
int getQueueSize();
|
2020-03-31 19:20:15 +02:00
|
|
|
|
|
|
|
MediaDescriptionCompat getQueueMetadata(int index);
|
2018-03-16 07:42:46 +01:00
|
|
|
|
2021-01-08 18:35:33 +01:00
|
|
|
void play();
|
2020-03-31 19:20:15 +02:00
|
|
|
|
2021-01-08 18:35:33 +01:00
|
|
|
void pause();
|
2018-03-16 07:42:46 +01:00
|
|
|
}
|