package androidx.media3.exoplayer.drm;

import androidx.media3.common.Format;
import com.google.common.util.concurrent.d0;
import java.io.Serializable;
import java.util.HashMap;
import java.util.concurrent.ExecutorService;
import kotlinx.coroutines.y;
import xyz.netfly.mobile.plugin.m;
import xyz.stream.utils.l;

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

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

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

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

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

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

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

    public /* synthetic */ j(int i10, String str, String str2, String str3, String str4) {
        this.f2995c = str;
        this.f2996d = str2;
        this.f2997e = str3;
        this.f2994b = i10;
        this.f2998f = str4;
    }

    @Override // java.lang.Runnable
    public final void run() {
        int i10 = this.f2993a;
        Object obj = this.f2998f;
        int i11 = this.f2994b;
        Object obj2 = this.f2997e;
        Object obj3 = this.f2996d;
        Object obj4 = this.f2995c;
        switch (i10) {
            case 0:
                ((OfflineLicenseHelper) obj4).lambda$acquireFirstSessionOnHandlerThread$2(i11, (byte[]) obj3, (d0) obj2, (Format) obj);
                break;
            case 1:
                ((m) obj4).g((String) obj3, (String) obj2, (Integer) obj, i11);
                break;
            default:
                String str = (String) obj4;
                String str2 = (String) obj3;
                String str3 = (String) obj2;
                String str4 = (String) obj;
                ExecutorService executorService = l.f36161a;
                try {
                    String str5 = str + ", " + str2;
                    HashMap map = new HashMap();
                    map.put("start_time", str3);
                    map.put("end_time", kotlinx.coroutines.flow.h.C());
                    map.put("video_id", Integer.valueOf(i11));
                    map.put("total_time", Long.valueOf(kotlinx.coroutines.flow.h.s(str3, kotlinx.coroutines.flow.h.C())));
                    map.put("duration", kotlinx.coroutines.flow.h.r(str3, kotlinx.coroutines.flow.h.C()) + ", " + str4 + ", , " + xyz.stream.utils.e.d().b());
                    map.put("imdb_id", str5);
                    y.R("play_finish", map);
                } catch (Exception e10) {
                    xyz.stream.utils.h.c(e10.getMessage());
                }
                break;
        }
    }

    /* JADX WARN: Multi-variable type inference failed */
    public /* synthetic */ j(OfflineLicenseHelper offlineLicenseHelper, int i10, byte[] bArr, d0 d0Var, Format format) {
        this.f2995c = offlineLicenseHelper;
        this.f2994b = i10;
        this.f2996d = bArr;
        this.f2997e = d0Var;
        this.f2998f = format;
    }

    public /* synthetic */ j(m mVar, String str, String str2, Integer num, int i10) {
        this.f2995c = mVar;
        this.f2996d = str;
        this.f2997e = str2;
        this.f2998f = num;
        this.f2994b = i10;
    }
}
