APK反编译源代码展示 - 南明离火平台提供

应用版本信息
应用名称:Նվագարկիչ
版本号:9.9.9
包名称:com.iptv.player

MD5 校验值:d7f913ab91d7343430e85d5ce2e5aff0

反编译源代码说明

h4.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。


package d9;

import android.content.Context;
import android.media.AudioManager;
import android.media.AudioTrack;
import android.os.Handler;
import android.view.Surface;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Objects;
import java.util.UUID;
import java.util.concurrent.CopyOnWriteArraySet;
import java.util.concurrent.TimeoutException;

public final class h4 extends com.google.android.gms.internal.ads.a {

    public final a4[] f23061b;

    public final r6.f f23062c = new r6.f(q5.f26359a);

    public final j2 f23063d;

    public final f4 f23064e;

    public final g4 f23065f;

    public final CopyOnWriteArraySet<t3> f23066g;

    public final dc0 f23067h;

    public final r1 f23068i;

    public final j4 f23069j;

    public AudioTrack f23070k;

    public Object f23071l;

    public Surface f23072m;

    public int f23073n;

    public int f23074o;

    public int f23075p;

    public int f23076q;

    public si1 f23077r;

    public float f23078s;

    public boolean f23079t;

    public List f23080u;

    public boolean f23081v;

    public boolean f23082w;

    public z1 f23083x;

    public h4(e4 e4Var) {
        h4 h4Var;
        try {
            Context applicationContext = e4Var.f22034a.getApplicationContext();
            this.f23067h = e4Var.f22041h;
            this.f23077r = e4Var.f22043j;
            this.f23073n = 1;
            this.f23079t = false;
            f4 f4Var = new f4(this);
            this.f23064e = f4Var;
            this.f23065f = new g4();
            this.f23066g = new CopyOnWriteArraySet<>();
            Handler handler = new Handler(e4Var.f22042i);
            this.f23061b = e4Var.f22035b.m(handler, f4Var, f4Var, f4Var, f4Var);
            this.f23078s = 1.0f;
            if (n6.f25343a < 21) {
                AudioTrack audioTrack = this.f23070k;
                if (audioTrack != null && audioTrack.getAudioSessionId() != 0) {
                    this.f23070k.release();
                    this.f23070k = null;
                }
                if (this.f23070k == null) {
                    this.f23070k = new AudioTrack(3, 4000, 4, 2, 2, 0, 0);
                }
                this.f23076q = this.f23070k.getAudioSessionId();
            } else {
                UUID uuid = t1.f27293a;
                int i10 = n6.f25343a;
                AudioManager audioManager = (AudioManager) applicationContext.getSystemService("audio");
                this.f23076q = audioManager == null ? -1 : audioManager.generateAudioSessionId();
            }
            this.f23080u = Collections.emptyList();
            this.f23081v = true;
            r6.f fVar = new r6.f(3);
            int[] iArr = {20, 21, 22, 23, 24, 25, 26, 27};
            for (int i11 = 0; i11 < 8; i11++) {
                fVar.h(iArr[i11]);
            }
            try {
                j2 j2Var = new j2(this.f23061b, e4Var.f22037d, e4Var.f22038e, e4Var.f22039f, e4Var.f22040g, this.f23067h, true, e4Var.f22044k, e4Var.f22046m, false, e4Var.f22036c, e4Var.f22042i, this, new r3(fVar.j()), null);
                h4Var = this;
                try {
                    h4Var.f23063d = j2Var;
                    j2Var.f23732i.a(h4Var.f23064e);
                    j2Var.f23733j.add(h4Var.f23064e);
                    new g20(e4Var.f22034a, handler, h4Var.f23064e);
                    h4Var.f23068i = new r1(e4Var.f22034a, handler, h4Var.f23064e);
                    n6.l(null, null);
                    j4 j4Var = new j4(e4Var.f22034a, handler, h4Var.f23064e);
                    h4Var.f23069j = j4Var;
                    Objects.requireNonNull(h4Var.f23077r);
                    j4Var.a(3);
                    h4Var.f23083x = V(j4Var);
                    h4Var.U(1, 10, Integer.valueOf(h4Var.f23076q));
                    h4Var.U(2, 10, Integer.valueOf(h4Var.f23076q));
                    h4Var.U(1, 3, h4Var.f23077r);
                    h4Var.U(2, 4, Integer.valueOf(h4Var.f23073n));
                    h4Var.U(2, 5, 0);
                    h4Var.U(1, 9, Boolean.valueOf(h4Var.f23079t));
                    h4Var.U(2, 7, h4Var.f23065f);
                    h4Var.U(6, 8, h4Var.f23065f);
                    h4Var.f23062c.i();
                } catch (Throwable th2) {
                    th = th2;
                    h4Var.f23062c.i();
                    throw th;
                }
            } catch (Throwable th3) {
                th = th3;
                h4Var = this;
            }
        } catch (Throwable th4) {
            th = th4;
            h4Var = this;
        }
    }

    public static void P(h4 h4Var) {
        int N = h4Var.N();
        if (N == 2 || N == 3) {
            h4Var.T();
            boolean z10 = h4Var.f23063d.f23748y.f26041p;
            h4Var.O();
            h4Var.O();
        }
    }

    public static z1 V(j4 j4Var) {
        Objects.requireNonNull(j4Var);
        return new z1(n6.f25343a >= 28 ? j4Var.f23766d.getStreamMinVolume(j4Var.f23768f) : 0, j4Var.f23766d.getStreamMaxVolume(j4Var.f23768f));
    }

    public static int W(boolean z10, int i10) {
        return (!z10 || i10 == 1) ? 1 : 2;
    }

    @Override
    public final int J() {
        T();
        return this.f23063d.J();
    }

    @Override
    public final int K() {
        T();
        return this.f23063d.K();
    }

    @Override
    public final long L() {
        T();
        return this.f23063d.L();
    }

    @Override
    public final long M() {
        T();
        return t1.a(this.f23063d.f23748y.f26043r);
    }

    public final int N() {
        T();
        return this.f23063d.f23748y.f26030e;
    }

    public final boolean O() {
        T();
        return this.f23063d.f23748y.f26037l;
    }

    public final void Q(Object obj) {
        boolean z10;
        ArrayList arrayList = new ArrayList();
        a4[] a4VarArr = this.f23061b;
        int length = a4VarArr.length;
        int i10 = 0;
        while (true) {
            z10 = true;
            if (i10 >= 2) {
                break;
            }
            a4 a4Var = a4VarArr[i10];
            if (a4Var.R() == 2) {
                x3 X = this.f23063d.X(a4Var);
                com.google.android.gms.internal.ads.l0.n(!X.f28566f);
                X.f28563c = 1;
                com.google.android.gms.internal.ads.l0.n(true ^ X.f28566f);
                X.f28564d = obj;
                X.b();
                arrayList.add(X);
            }
            i10++;
        }
        Object obj2 = this.f23071l;
        if (obj2 == null || obj2 == obj) {
            z10 = false;
        } else {
            try {
                Iterator it = arrayList.iterator();
                while (it.hasNext()) {
                    ((x3) it.next()).d();
                }
            } catch (InterruptedException unused) {
                Thread.currentThread().interrupt();
            } catch (TimeoutException unused2) {
            }
            z10 = false;
            Object obj3 = this.f23071l;
            Surface surface = this.f23072m;
            if (obj3 == surface) {
                surface.release();
                this.f23072m = null;
            }
        }
        this.f23071l = obj;
        if (z10) {
            this.f23063d.W(false, a2.a(new s2(3), 1003));
        }
    }

    public final void R(int i10, int i11) {
        if (i10 == this.f23074o && i11 == this.f23075p) {
            return;
        }
        this.f23074o = i10;
        this.f23075p = i11;
        this.f23067h.n(i10, i11);
        Iterator<t3> it = this.f23066g.iterator();
        while (it.hasNext()) {
            it.next().n(i10, i11);
        }
    }

    public final void S(boolean z10, int i10, int i11) {
        int i12 = 0;
        ?? r13 = (!z10 || i10 == -1) ? 0 : 1;
        if (r13 != 0 && i10 != 1) {
            i12 = 1;
        }
        j2 j2Var = this.f23063d;
        p3 p3Var = j2Var.f23748y;
        if (p3Var.f26037l == r13 && p3Var.f26038m == i12) {
            return;
        }
        j2Var.f23742s++;
        p3 g10 = p3Var.g(r13, i12);
        l6 l6Var = (l6) j2Var.f23731h.f26309h;
        Objects.requireNonNull(l6Var);
        k6 g11 = l6.g();
        g11.f24061a = l6Var.f24407a.obtainMessage(1, r13, i12);
        g11.a();
        j2Var.P(g10, 0, i11, false, false, 5, -9223372036854775807L, -1);
    }

    public final void T() {
        r6.f fVar = this.f23062c;
        synchronized (fVar) {
            boolean z10 = false;
            while (!fVar.f39736b) {
                try {
                    fVar.wait();
                } catch (InterruptedException unused) {
                    z10 = true;
                }
            }
            if (z10) {
                Thread.currentThread().interrupt();
            }
        }
        if (Thread.currentThread() != this.f23063d.f23739p.getThread()) {
            String t10 = n6.t("Player is accessed on the wrong thread.\nCurrent thread: '%s'\nExpected thread: '%s'\nSee https://exoplayer.dev/issues/player-accessed-on-wrong-thread", Thread.currentThread().getName(), this.f23063d.f23739p.getThread().getName());
            if (this.f23081v) {
                throw new IllegalStateException(t10);
            }
            n0.b.B("SimpleExoPlayer", t10, this.f23082w ? null : new IllegalStateException());
            this.f23082w = true;
        }
    }

    public final void U(int i10, int i11, Object obj) {
        a4[] a4VarArr = this.f23061b;
        int length = a4VarArr.length;
        for (int i12 = 0; i12 < 2; i12++) {
            a4 a4Var = a4VarArr[i12];
            if (a4Var.R() == i10) {
                x3 X = this.f23063d.X(a4Var);
                com.google.android.gms.internal.ads.l0.n(!X.f28566f);
                X.f28563c = i11;
                com.google.android.gms.internal.ads.l0.n(!X.f28566f);
                X.f28564d = obj;
                X.b();
            }
        }
    }

    @Override
    public final boolean a() {
        T();
        return this.f23063d.a();
    }

    @Override
    public final int b() {
        T();
        return this.f23063d.b();
    }

    @Override
    public final int c() {
        T();
        return this.f23063d.c();
    }

    @Override
    public final long d() {
        T();
        return this.f23063d.d();
    }

    @Override
    public final n4 e() {
        T();
        return this.f23063d.f23748y.f26026a;
    }
}