- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
48 lines
1.6 KiB
Java
48 lines
1.6 KiB
Java
package com.mbridge.msdk.playercommon.exoplayer2.offline;
|
|
|
|
import android.net.Uri;
|
|
import androidx.annotation.Nullable;
|
|
import com.mbridge.msdk.playercommon.exoplayer2.source.TrackGroupArray;
|
|
import java.util.List;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class ProgressiveDownloadHelper extends DownloadHelper {
|
|
|
|
@Nullable
|
|
private final String customCacheKey;
|
|
private final Uri uri;
|
|
|
|
@Override // com.mbridge.msdk.playercommon.exoplayer2.offline.DownloadHelper
|
|
public final int getPeriodCount() {
|
|
return 1;
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.playercommon.exoplayer2.offline.DownloadHelper
|
|
public final void prepareInternal() {
|
|
}
|
|
|
|
public ProgressiveDownloadHelper(Uri uri) {
|
|
this(uri, null);
|
|
}
|
|
|
|
public ProgressiveDownloadHelper(Uri uri, @Nullable String str) {
|
|
this.uri = uri;
|
|
this.customCacheKey = str;
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.playercommon.exoplayer2.offline.DownloadHelper
|
|
public final TrackGroupArray getTrackGroups(int i) {
|
|
return TrackGroupArray.EMPTY;
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.playercommon.exoplayer2.offline.DownloadHelper
|
|
public final DownloadAction getDownloadAction(@Nullable byte[] bArr, List<TrackKey> list) {
|
|
return new ProgressiveDownloadAction(this.uri, false, bArr, this.customCacheKey);
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.playercommon.exoplayer2.offline.DownloadHelper
|
|
public final DownloadAction getRemoveAction(@Nullable byte[] bArr) {
|
|
return new ProgressiveDownloadAction(this.uri, true, bArr, this.customCacheKey);
|
|
}
|
|
}
|