package xyz.stream.utils;

import java.util.HashMap;

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

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

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

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

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

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

    public /* synthetic */ i(String str, String str2, int i10, String str3) {
        this.f36144b = str;
        this.f36145c = str2;
        this.f36147e = i10;
        this.f36146d = str3;
    }

    @Override // java.lang.Runnable
    public final void run() {
        int i10 = this.f36143a;
        int i11 = this.f36147e;
        String str = this.f36146d;
        String str2 = this.f36145c;
        String str3 = this.f36144b;
        switch (i10) {
            case 0:
                try {
                    HashMap map = new HashMap();
                    map.put("duration", kotlinx.coroutines.flow.h.r(str3, str2) + ", " + e.d().b() + ", " + i11);
                    map.put("channel_id", Integer.valueOf(i11));
                    map.put("channel_name", str);
                    kotlinx.coroutines.y.R("live_play_first_frame", map);
                } catch (Exception e10) {
                    h.c(e10.getMessage());
                }
                break;
            default:
                try {
                    String str4 = str3 + ", " + str2;
                    HashMap map2 = new HashMap();
                    map2.put("start_time", str);
                    map2.put("end_time", kotlinx.coroutines.flow.h.C());
                    map2.put("duration", kotlinx.coroutines.flow.h.r(str, kotlinx.coroutines.flow.h.C()) + ", " + e.d().b() + ", " + str4);
                    map2.put("video_id", Integer.valueOf(i11));
                    map2.put("total_time", Long.valueOf(kotlinx.coroutines.flow.h.s(str, kotlinx.coroutines.flow.h.C())));
                    map2.put("imdb_id", str4);
                    kotlinx.coroutines.y.R("vod_playing", map2);
                } catch (Exception e11) {
                    h.c(e11.getMessage());
                    return;
                }
                break;
        }
    }

    public /* synthetic */ i(String str, String str2, String str3, int i10) {
        this.f36144b = str;
        this.f36145c = str2;
        this.f36146d = str3;
        this.f36147e = i10;
    }
}
