2017-10-13 03:22:25 +02:00
|
|
|
package org.schabi.newpipe.player.event;
|
|
|
|
|
|
|
|
import com.google.android.exoplayer2.PlaybackParameters;
|
|
|
|
|
|
|
|
import org.schabi.newpipe.extractor.stream.StreamInfo;
|
2020-01-06 11:39:01 +01:00
|
|
|
import org.schabi.newpipe.player.playqueue.PlayQueue;
|
2017-10-13 03:22:25 +02:00
|
|
|
|
|
|
|
public interface PlayerEventListener {
|
2020-01-06 11:39:01 +01:00
|
|
|
void onQueueUpdate(PlayQueue queue);
|
2020-03-31 19:20:15 +02:00
|
|
|
void onPlaybackUpdate(int state, int repeatMode, boolean shuffled,
|
|
|
|
PlaybackParameters parameters);
|
2017-10-13 03:22:25 +02:00
|
|
|
void onProgressUpdate(int currentProgress, int duration, int bufferPercent);
|
2020-03-10 10:06:38 +01:00
|
|
|
void onMetadataUpdate(StreamInfo info, PlayQueue queue);
|
2017-10-13 03:22:25 +02:00
|
|
|
void onServiceStopped();
|
|
|
|
}
|