Files
rr3-apk/decompiled/sources/com/mbridge/msdk/playercommon/exoplayer2/PlaybackInfo.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

81 lines
4.1 KiB
Java

package com.mbridge.msdk.playercommon.exoplayer2;
import androidx.annotation.Nullable;
import com.mbridge.msdk.playercommon.exoplayer2.source.MediaSource;
import com.mbridge.msdk.playercommon.exoplayer2.source.TrackGroupArray;
import com.mbridge.msdk.playercommon.exoplayer2.trackselection.TrackSelectorResult;
/* loaded from: classes4.dex */
final class PlaybackInfo {
public volatile long bufferedPositionUs;
public final long contentPositionUs;
public final boolean isLoading;
@Nullable
public final Object manifest;
public final MediaSource.MediaPeriodId periodId;
public final int playbackState;
public volatile long positionUs;
public final long startPositionUs;
public final Timeline timeline;
public final TrackGroupArray trackGroups;
public final TrackSelectorResult trackSelectorResult;
public PlaybackInfo(Timeline timeline, long j, TrackGroupArray trackGroupArray, TrackSelectorResult trackSelectorResult) {
this(timeline, null, new MediaSource.MediaPeriodId(0), j, C.TIME_UNSET, 1, false, trackGroupArray, trackSelectorResult);
}
public PlaybackInfo(Timeline timeline, @Nullable Object obj, MediaSource.MediaPeriodId mediaPeriodId, long j, long j2, int i, boolean z, TrackGroupArray trackGroupArray, TrackSelectorResult trackSelectorResult) {
this.timeline = timeline;
this.manifest = obj;
this.periodId = mediaPeriodId;
this.startPositionUs = j;
this.contentPositionUs = j2;
this.positionUs = j;
this.bufferedPositionUs = j;
this.playbackState = i;
this.isLoading = z;
this.trackGroups = trackGroupArray;
this.trackSelectorResult = trackSelectorResult;
}
public final PlaybackInfo fromNewPosition(MediaSource.MediaPeriodId mediaPeriodId, long j, long j2) {
return new PlaybackInfo(this.timeline, this.manifest, mediaPeriodId, j, mediaPeriodId.isAd() ? j2 : -9223372036854775807L, this.playbackState, this.isLoading, this.trackGroups, this.trackSelectorResult);
}
public final PlaybackInfo copyWithPeriodIndex(int i) {
PlaybackInfo playbackInfo = new PlaybackInfo(this.timeline, this.manifest, this.periodId.copyWithPeriodIndex(i), this.startPositionUs, this.contentPositionUs, this.playbackState, this.isLoading, this.trackGroups, this.trackSelectorResult);
copyMutablePositions(this, playbackInfo);
return playbackInfo;
}
public final PlaybackInfo copyWithTimeline(Timeline timeline, Object obj) {
PlaybackInfo playbackInfo = new PlaybackInfo(timeline, obj, this.periodId, this.startPositionUs, this.contentPositionUs, this.playbackState, this.isLoading, this.trackGroups, this.trackSelectorResult);
copyMutablePositions(this, playbackInfo);
return playbackInfo;
}
public final PlaybackInfo copyWithPlaybackState(int i) {
PlaybackInfo playbackInfo = new PlaybackInfo(this.timeline, this.manifest, this.periodId, this.startPositionUs, this.contentPositionUs, i, this.isLoading, this.trackGroups, this.trackSelectorResult);
copyMutablePositions(this, playbackInfo);
return playbackInfo;
}
public final PlaybackInfo copyWithIsLoading(boolean z) {
PlaybackInfo playbackInfo = new PlaybackInfo(this.timeline, this.manifest, this.periodId, this.startPositionUs, this.contentPositionUs, this.playbackState, z, this.trackGroups, this.trackSelectorResult);
copyMutablePositions(this, playbackInfo);
return playbackInfo;
}
public final PlaybackInfo copyWithTrackInfo(TrackGroupArray trackGroupArray, TrackSelectorResult trackSelectorResult) {
PlaybackInfo playbackInfo = new PlaybackInfo(this.timeline, this.manifest, this.periodId, this.startPositionUs, this.contentPositionUs, this.playbackState, this.isLoading, trackGroupArray, trackSelectorResult);
copyMutablePositions(this, playbackInfo);
return playbackInfo;
}
private static void copyMutablePositions(PlaybackInfo playbackInfo, PlaybackInfo playbackInfo2) {
playbackInfo2.positionUs = playbackInfo.positionUs;
playbackInfo2.bufferedPositionUs = playbackInfo.bufferedPositionUs;
}
}