package u5;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ProgressBar;
import androidx.media3.ui.PlayerView;
import com.martsnew.tv.R;

/* JADX INFO: renamed from: u5.d, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1618d extends AbstractC1616c {

    /* JADX INFO: renamed from: N, reason: collision with root package name */
    public static final SparseIntArray f17711N;

    /* JADX INFO: renamed from: M, reason: collision with root package name */
    public long f17712M;

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        f17711N = sparseIntArray;
        sparseIntArray.put(R.id.playerView, 1);
        sparseIntArray.put(R.id.container, 2);
        sparseIntArray.put(R.id.progressBar, 3);
    }

    /* JADX WARN: Illegal instructions before constructor call */
    public C1618d(View view) {
        Object[] objArrI = U.g.I(view, 4, null, f17711N);
        super(null, view, (PlayerView) objArrI[1], (ProgressBar) objArrI[3]);
        this.f17712M = -1L;
        ((FrameLayout) objArrI[0]).setTag(null);
        L(view);
        G();
    }

    @Override // U.g
    public final void C() {
        synchronized (this) {
            this.f17712M = 0L;
        }
    }

    @Override // U.g
    public final boolean F() {
        synchronized (this) {
            try {
                return this.f17712M != 0;
            } catch (Throwable th) {
                throw th;
            }
        }
    }

    @Override // U.g
    public final void G() {
        synchronized (this) {
            this.f17712M = 1L;
        }
        J();
    }
}
