package androidx.media3.exoplayer.hls;

import androidx.media3.common.MediaItem;
import androidx.media3.common.Metadata;
import androidx.media3.common.util.Consumer;
import androidx.media3.exoplayer.hls.HlsInterstitialsAdsLoader;
import androidx.media3.exoplayer.source.ads.AdsMediaSource;
import java.io.IOException;

/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class f implements Consumer {

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

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

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

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

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

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

    public /* synthetic */ f(Object obj, Object obj2, int i10, int i11, Object obj3, int i12) {
        this.f3034a = i12;
        this.f3038e = obj;
        this.f3035b = obj2;
        this.f3036c = i10;
        this.f3037d = i11;
        this.f3039f = obj3;
    }

    @Override // androidx.media3.common.util.Consumer
    public final void accept(Object obj) {
        int i10 = this.f3034a;
        Object obj2 = this.f3039f;
        Object obj3 = this.f3038e;
        switch (i10) {
            case 0:
                ((HlsInterstitialsAdsLoader.Listener) obj).onMetadata((MediaItem) obj3, this.f3035b, this.f3036c, this.f3037d, (Metadata) obj2);
                break;
            default:
                HlsInterstitialsAdsLoader.lambda$handlePrepareError$3((AdsMediaSource) obj3, this.f3035b, this.f3036c, this.f3037d, (IOException) obj2, (HlsInterstitialsAdsLoader.Listener) obj);
                break;
        }
    }
}
