package androidx.media3.common;

import androidx.media3.common.SimpleBasePlayer;
import androidx.media3.ui.TrackSelectionDialogBuilder;
import java.util.Map;

/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class d implements SimpleBasePlayer.PositionSupplier, TrackSelectionDialogBuilder.DialogCallback {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ Player f2742a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ int f2743b;

    public /* synthetic */ d(Player player, int i10) {
        this.f2743b = i10;
        this.f2742a = player;
    }

    @Override // androidx.media3.common.SimpleBasePlayer.PositionSupplier
    public long get() {
        int i10 = this.f2743b;
        Player player = this.f2742a;
        switch (i10) {
            case 0:
                return player.getCurrentPosition();
            case 1:
                return player.getBufferedPosition();
            case 2:
                return player.getContentPosition();
            case 3:
                return player.getContentBufferedPosition();
            default:
                return player.getTotalBufferedDuration();
        }
    }

    @Override // androidx.media3.ui.TrackSelectionDialogBuilder.DialogCallback
    public void onTracksSelected(boolean z10, Map map) {
        TrackSelectionDialogBuilder.lambda$new$0(this.f2742a, this.f2743b, z10, map);
    }
}
