Rabbit-R1/switch port/java/sources/androidx/media3/exoplayer/source/MediaPeriod.java

54 lines
1.7 KiB
Java
Raw Normal View History

2024-05-21 16:08:36 -05:00
package androidx.media3.exoplayer.source;
import androidx.media3.common.StreamKey;
import androidx.media3.exoplayer.SeekParameters;
import androidx.media3.exoplayer.source.SequenceableLoader;
import androidx.media3.exoplayer.trackselection.ExoTrackSelection;
import java.io.IOException;
import java.util.Collections;
import java.util.List;
/* loaded from: classes2.dex */
public interface MediaPeriod extends SequenceableLoader {
/* loaded from: classes2.dex */
public interface Callback extends SequenceableLoader.Callback<MediaPeriod> {
void onPrepared(MediaPeriod mediaPeriod);
}
@Override // androidx.media3.exoplayer.source.SequenceableLoader
boolean continueLoading(long j);
void discardBuffer(long j, boolean z);
long getAdjustedSeekPositionUs(long j, SeekParameters seekParameters);
@Override // androidx.media3.exoplayer.source.SequenceableLoader
long getBufferedPositionUs();
@Override // androidx.media3.exoplayer.source.SequenceableLoader
long getNextLoadPositionUs();
TrackGroupArray getTrackGroups();
@Override // androidx.media3.exoplayer.source.SequenceableLoader
boolean isLoading();
void maybeThrowPrepareError() throws IOException;
void prepare(Callback callback, long j);
long readDiscontinuity();
@Override // androidx.media3.exoplayer.source.SequenceableLoader
void reevaluateBuffer(long j);
long seekToUs(long j);
long selectTracks(ExoTrackSelection[] exoTrackSelectionArr, boolean[] zArr, SampleStream[] sampleStreamArr, boolean[] zArr2, long j);
default List<StreamKey> getStreamKeys(List<ExoTrackSelection> list) {
return Collections.emptyList();
}
}