2018-03-16 07:42:46 +01:00
|
|
|
package org.schabi.newpipe.player.mediasession;
|
|
|
|
|
|
|
|
import android.support.v4.media.MediaDescriptionCompat;
|
|
|
|
|
|
|
|
public interface MediaSessionCallback {
|
|
|
|
void onSkipToPrevious();
|
2020-03-31 19:20:15 +02:00
|
|
|
|
2018-03-16 07:42:46 +01:00
|
|
|
void onSkipToNext();
|
2020-03-31 19:20:15 +02:00
|
|
|
|
|
|
|
void onSkipToIndex(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
|
|
|
|
|
|
|
void onPlay();
|
2020-03-31 19:20:15 +02:00
|
|
|
|
2018-03-16 07:42:46 +01:00
|
|
|
void onPause();
|
|
|
|
}
|