package d3;

import androidx.compose.runtime.MutableState;
import androidx.media3.common.TrackSelectionOverride;
import androidx.media3.common.TrackSelectionParameters;
import androidx.media3.exoplayer.ExoPlayer;
import com.debridstream.tv.PlayerViewModel;
import j$.time.format.DateTimeFormatter;
import w4.C3137A;

/* JADX INFO: loaded from: classes.dex */
public final class F1 implements J4.a {

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ C f15090c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ MutableState f15091d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ MutableState f15092e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final /* synthetic */ MutableState f15093f;

    public F1(PlayerViewModel playerViewModel, ExoPlayer exoPlayer, C c6, MutableState mutableState, MutableState mutableState2, MutableState mutableState3) {
        this.f15088a = playerViewModel;
        this.f15089b = exoPlayer;
        this.f15090c = c6;
        this.f15091d = mutableState;
        this.f15092e = mutableState2;
        this.f15093f = mutableState3;
    }

    @Override // J4.a
    public final Object invoke() {
        this.f15088a.setExternalSubtitle(null, null);
        DateTimeFormatter dateTimeFormatter = v2.f16084a;
        this.f15091d.setValue(null);
        ExoPlayer exoPlayer = this.f15089b;
        TrackSelectionParameters.Builder builderBuildUpon = exoPlayer.getTrackSelectionParameters().buildUpon();
        kotlin.jvm.internal.o.g(builderBuildUpon, "buildUpon(...)");
        builderBuildUpon.setTrackTypeDisabled(3, false);
        builderBuildUpon.clearOverridesOfType(3);
        C c6 = this.f15090c;
        builderBuildUpon.addOverride(new TrackSelectionOverride(c6.f15031a, c6.f15032b));
        exoPlayer.setTrackSelectionParameters(builderBuildUpon.build());
        this.f15092e.setValue(0L);
        this.f15093f.setValue(Boolean.FALSE);
        return C3137A.f25453a;
    }
}
