Files
rr3-apk/decompiled/sources/com/mbridge/msdk/playercommon/exoplayer2/Player.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

239 lines
6.7 KiB
Java

package com.mbridge.msdk.playercommon.exoplayer2;
import android.view.Surface;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.view.TextureView;
import androidx.annotation.Nullable;
import com.mbridge.msdk.playercommon.exoplayer2.source.TrackGroupArray;
import com.mbridge.msdk.playercommon.exoplayer2.text.TextOutput;
import com.mbridge.msdk.playercommon.exoplayer2.trackselection.TrackSelectionArray;
import com.mbridge.msdk.playercommon.exoplayer2.video.VideoListener;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/* loaded from: classes4.dex */
public interface Player {
public static final int DISCONTINUITY_REASON_AD_INSERTION = 3;
public static final int DISCONTINUITY_REASON_INTERNAL = 4;
public static final int DISCONTINUITY_REASON_PERIOD_TRANSITION = 0;
public static final int DISCONTINUITY_REASON_SEEK = 1;
public static final int DISCONTINUITY_REASON_SEEK_ADJUSTMENT = 2;
public static final int REPEAT_MODE_ALL = 2;
public static final int REPEAT_MODE_OFF = 0;
public static final int REPEAT_MODE_ONE = 1;
public static final int STATE_BUFFERING = 2;
public static final int STATE_ENDED = 4;
public static final int STATE_IDLE = 1;
public static final int STATE_READY = 3;
public static final int TIMELINE_CHANGE_REASON_DYNAMIC = 2;
public static final int TIMELINE_CHANGE_REASON_PREPARED = 0;
public static final int TIMELINE_CHANGE_REASON_RESET = 1;
@Retention(RetentionPolicy.SOURCE)
public @interface DiscontinuityReason {
}
public interface EventListener {
void onLoadingChanged(boolean z);
void onPlaybackParametersChanged(PlaybackParameters playbackParameters);
void onPlayerError(ExoPlaybackException exoPlaybackException);
void onPlayerStateChanged(boolean z, int i);
void onPositionDiscontinuity(int i);
void onRepeatModeChanged(int i);
void onSeekProcessed();
void onShuffleModeEnabledChanged(boolean z);
void onTimelineChanged(Timeline timeline, @Nullable Object obj, int i);
void onTracksChanged(TrackGroupArray trackGroupArray, TrackSelectionArray trackSelectionArray);
}
@Retention(RetentionPolicy.SOURCE)
public @interface RepeatMode {
}
public interface TextComponent {
void addTextOutput(TextOutput textOutput);
void removeTextOutput(TextOutput textOutput);
}
@Retention(RetentionPolicy.SOURCE)
public @interface TimelineChangeReason {
}
public interface VideoComponent {
void addVideoListener(VideoListener videoListener);
void clearVideoSurface();
void clearVideoSurface(Surface surface);
void clearVideoSurfaceHolder(SurfaceHolder surfaceHolder);
void clearVideoSurfaceView(SurfaceView surfaceView);
void clearVideoTextureView(TextureView textureView);
int getVideoScalingMode();
void removeVideoListener(VideoListener videoListener);
void setVideoScalingMode(int i);
void setVideoSurface(Surface surface);
void setVideoSurfaceHolder(SurfaceHolder surfaceHolder);
void setVideoSurfaceView(SurfaceView surfaceView);
void setVideoTextureView(TextureView textureView);
}
void addListener(EventListener eventListener);
int getBufferedPercentage();
long getBufferedPosition();
long getContentPosition();
int getCurrentAdGroupIndex();
int getCurrentAdIndexInAdGroup();
@Nullable
Object getCurrentManifest();
int getCurrentPeriodIndex();
long getCurrentPosition();
@Nullable
Object getCurrentTag();
Timeline getCurrentTimeline();
TrackGroupArray getCurrentTrackGroups();
TrackSelectionArray getCurrentTrackSelections();
int getCurrentWindowIndex();
long getDuration();
int getNextWindowIndex();
boolean getPlayWhenReady();
@Nullable
ExoPlaybackException getPlaybackError();
PlaybackParameters getPlaybackParameters();
int getPlaybackState();
int getPreviousWindowIndex();
int getRendererCount();
int getRendererType(int i);
int getRepeatMode();
boolean getShuffleModeEnabled();
@Nullable
TextComponent getTextComponent();
@Nullable
VideoComponent getVideoComponent();
boolean isCurrentWindowDynamic();
boolean isCurrentWindowSeekable();
boolean isLoading();
boolean isPlayingAd();
void release();
void removeListener(EventListener eventListener);
void seekTo(int i, long j);
void seekTo(long j);
void seekToDefaultPosition();
void seekToDefaultPosition(int i);
void setPlayWhenReady(boolean z);
void setPlaybackParameters(@Nullable PlaybackParameters playbackParameters);
void setRepeatMode(int i);
void setShuffleModeEnabled(boolean z);
void stop();
void stop(boolean z);
public static abstract class DefaultEventListener implements EventListener {
@Override // com.mbridge.msdk.playercommon.exoplayer2.Player.EventListener
public void onLoadingChanged(boolean z) {
}
@Override // com.mbridge.msdk.playercommon.exoplayer2.Player.EventListener
public void onPlaybackParametersChanged(PlaybackParameters playbackParameters) {
}
@Override // com.mbridge.msdk.playercommon.exoplayer2.Player.EventListener
public void onPlayerError(ExoPlaybackException exoPlaybackException) {
}
@Override // com.mbridge.msdk.playercommon.exoplayer2.Player.EventListener
public void onPlayerStateChanged(boolean z, int i) {
}
@Override // com.mbridge.msdk.playercommon.exoplayer2.Player.EventListener
public void onPositionDiscontinuity(int i) {
}
@Override // com.mbridge.msdk.playercommon.exoplayer2.Player.EventListener
public void onRepeatModeChanged(int i) {
}
@Override // com.mbridge.msdk.playercommon.exoplayer2.Player.EventListener
public void onSeekProcessed() {
}
@Override // com.mbridge.msdk.playercommon.exoplayer2.Player.EventListener
public void onShuffleModeEnabledChanged(boolean z) {
}
@Deprecated
public void onTimelineChanged(Timeline timeline, @Nullable Object obj) {
}
@Override // com.mbridge.msdk.playercommon.exoplayer2.Player.EventListener
public void onTracksChanged(TrackGroupArray trackGroupArray, TrackSelectionArray trackSelectionArray) {
}
@Override // com.mbridge.msdk.playercommon.exoplayer2.Player.EventListener
public void onTimelineChanged(Timeline timeline, @Nullable Object obj, int i) {
onTimelineChanged(timeline, obj);
}
}
}