package com.tencent.mm.plugin.sns.ui;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.g.a.lp;
import com.tencent.mm.sdk.b.c;

class OnlineVideoView$5 extends c<lp> {
    final /* synthetic */ OnlineVideoView rly;

    OnlineVideoView$5(OnlineVideoView onlineVideoView) {
        this.rly = onlineVideoView;
        AppMethodBeat.i(38392);
        this.xxI = lp.class.getName().hashCode();
        AppMethodBeat.o(38392);
    }

    private boolean a(com.tencent.mm.g.a.lp r15) {
        /*
        r14 = this;
        r13 = 38393; // 0x95f9 float:5.38E-41 double:1.89687E-319;
        r3 = 2;
        r2 = 1;
        r12 = 0;
        com.tencent.matrix.trace.core.AppMethodBeat.i(r13);
        r0 = r14.rly;
        r0 = com.tencent.mm.plugin.sns.ui.OnlineVideoView.k(r0);
        if (r0 != 0) goto L_0x002c;
    L_0x0011:
        r0 = "MicroMsg.OnlineVideoView";
        r1 = "%d online video helper is null.";
        r2 = new java.lang.Object[r2];
        r3 = r14.rly;
        r3 = r3.hashCode();
        r3 = java.lang.Integer.valueOf(r3);
        r2[r12] = r3;
        com.tencent.mm.sdk.platformtools.ab.w(r0, r1, r2);
        com.tencent.matrix.trace.core.AppMethodBeat.o(r13);
    L_0x002b:
        return r12;
    L_0x002c:
        r0 = r14.rly;	 Catch:{ Exception -> 0x0121 }
        r0 = com.tencent.mm.plugin.sns.ui.OnlineVideoView.k(r0);	 Catch:{ Exception -> 0x0121 }
        r1 = r15.cHq;	 Catch:{ Exception -> 0x0121 }
        r1 = r1.cHr;	 Catch:{ Exception -> 0x0121 }
        r0 = r0.ZA(r1);	 Catch:{ Exception -> 0x0121 }
        if (r0 != 0) goto L_0x0040;
    L_0x003c:
        com.tencent.matrix.trace.core.AppMethodBeat.o(r13);
        goto L_0x002b;
    L_0x0040:
        r0 = r15.cHq;	 Catch:{ Exception -> 0x0121 }
        r0 = r0.retCode;	 Catch:{ Exception -> 0x0121 }
        r1 = -21112; // 0xffffffffffffad88 float:NaN double:NaN;
        if (r0 != r1) goto L_0x0064;
    L_0x0048:
        r0 = r14.rly;	 Catch:{ Exception -> 0x0121 }
        r1 = com.tencent.mm.plugin.report.service.h.pYm;	 Catch:{ Exception -> 0x0121 }
        r2 = 354; // 0x162 float:4.96E-43 double:1.75E-321;
        r4 = 218; // 0xda float:3.05E-43 double:1.077E-321;
        r6 = 1;
        r8 = 0;
        r1.a(r2, r4, r6, r8);	 Catch:{ Exception -> 0x0121 }
        r1 = r0.kkp;	 Catch:{ Exception -> 0x0121 }
        r2 = new com.tencent.mm.plugin.sns.ui.OnlineVideoView$9;	 Catch:{ Exception -> 0x0121 }
        r2.<init>(r0);	 Catch:{ Exception -> 0x0121 }
        r1.post(r2);	 Catch:{ Exception -> 0x0121 }
        com.tencent.matrix.trace.core.AppMethodBeat.o(r13);
        goto L_0x002b;
    L_0x0064:
        r0 = r15.cHq;	 Catch:{ Exception -> 0x0121 }
        r0 = r0.retCode;	 Catch:{ Exception -> 0x0121 }
        if (r0 == 0) goto L_0x009a;
    L_0x006a:
        r0 = r15.cHq;	 Catch:{ Exception -> 0x0121 }
        r0 = r0.retCode;	 Catch:{ Exception -> 0x0121 }
        r1 = -21006; // 0xffffffffffffadf2 float:NaN double:NaN;
        if (r0 == r1) goto L_0x009a;
    L_0x0072:
        r0 = "MicroMsg.OnlineVideoView";
        r1 = "%d stream download online video error. retCode %d ";
        r2 = 2;
        r2 = new java.lang.Object[r2];	 Catch:{ Exception -> 0x0121 }
        r3 = 0;
        r4 = r14.rly;	 Catch:{ Exception -> 0x0121 }
        r4 = r4.hashCode();	 Catch:{ Exception -> 0x0121 }
        r4 = java.lang.Integer.valueOf(r4);	 Catch:{ Exception -> 0x0121 }
        r2[r3] = r4;	 Catch:{ Exception -> 0x0121 }
        r3 = 1;
        r4 = r15.cHq;	 Catch:{ Exception -> 0x0121 }
        r4 = r4.retCode;	 Catch:{ Exception -> 0x0121 }
        r4 = java.lang.Integer.valueOf(r4);	 Catch:{ Exception -> 0x0121 }
        r2[r3] = r4;	 Catch:{ Exception -> 0x0121 }
        com.tencent.mm.sdk.platformtools.ab.w(r0, r1, r2);	 Catch:{ Exception -> 0x0121 }
        com.tencent.matrix.trace.core.AppMethodBeat.o(r13);
        goto L_0x002b;
    L_0x009a:
        r0 = r15.cHq;	 Catch:{ Exception -> 0x0121 }
        r0 = r0.cAd;	 Catch:{ Exception -> 0x0121 }
        switch(r0) {
            case 1: goto L_0x00ca;
            case 2: goto L_0x021a;
            case 3: goto L_0x02de;
            case 4: goto L_0x02e6;
            case 5: goto L_0x03d9;
            case 6: goto L_0x0454;
            default: goto L_0x00a1;
        };	 Catch:{ Exception -> 0x0121 }
    L_0x00a1:
        r0 = "MicroMsg.OnlineVideoView";
        r1 = "%d unknown event opcode %d";
        r2 = 2;
        r2 = new java.lang.Object[r2];	 Catch:{ Exception -> 0x0121 }
        r3 = 0;
        r4 = r14.rly;	 Catch:{ Exception -> 0x0121 }
        r4 = r4.hashCode();	 Catch:{ Exception -> 0x0121 }
        r4 = java.lang.Integer.valueOf(r4);	 Catch:{ Exception -> 0x0121 }
        r2[r3] = r4;	 Catch:{ Exception -> 0x0121 }
        r3 = 1;
        r4 = r15.cHq;	 Catch:{ Exception -> 0x0121 }
        r4 = r4.cAd;	 Catch:{ Exception -> 0x0121 }
        r4 = java.lang.Integer.valueOf(r4);	 Catch:{ Exception -> 0x0121 }
        r2[r3] = r4;	 Catch:{ Exception -> 0x0121 }
        com.tencent.mm.sdk.platformtools.ab.w(r0, r1, r2);	 Catch:{ Exception -> 0x0121 }
    L_0x00c5:
        com.tencent.matrix.trace.core.AppMethodBeat.o(r13);
        goto L_0x002b;
    L_0x00ca:
        r0 = r14.rly;	 Catch:{ Exception -> 0x0121 }
        r2 = com.tencent.mm.plugin.sns.ui.OnlineVideoView.k(r0);	 Catch:{ Exception -> 0x0121 }
        r0 = r15.cHq;	 Catch:{ Exception -> 0x0121 }
        r0 = r0.offset;	 Catch:{ Exception -> 0x0121 }
        r4 = (long) r0;	 Catch:{ Exception -> 0x0121 }
        r0 = r15.cHq;	 Catch:{ Exception -> 0x0121 }
        r0 = r0.cHs;	 Catch:{ Exception -> 0x0121 }
        r3 = r15.cHq;	 Catch:{ Exception -> 0x0121 }
        r3 = r3.cHt;	 Catch:{ Exception -> 0x0121 }
        r6 = "MicroMsg.OnlineVideoViewHelper";
        r7 = "deal moov ready moovPos %d, timeDuration %d, cdnMediaId %s startDownload[%d %d]";
        r8 = 5;
        r8 = new java.lang.Object[r8];	 Catch:{ Exception -> 0x0121 }
        r9 = 0;
        r10 = java.lang.Long.valueOf(r4);	 Catch:{ Exception -> 0x0121 }
        r8[r9] = r10;	 Catch:{ Exception -> 0x0121 }
        r9 = 1;
        r10 = r2.fUR;	 Catch:{ Exception -> 0x0121 }
        r10 = java.lang.Integer.valueOf(r10);	 Catch:{ Exception -> 0x0121 }
        r8[r9] = r10;	 Catch:{ Exception -> 0x0121 }
        r9 = 2;
        r10 = r2.fUL;	 Catch:{ Exception -> 0x0121 }
        r8[r9] = r10;	 Catch:{ Exception -> 0x0121 }
        r9 = 3;
        r10 = java.lang.Long.valueOf(r0);	 Catch:{ Exception -> 0x0121 }
        r8[r9] = r10;	 Catch:{ Exception -> 0x0121 }
        r9 = 4;
        r10 = r2.egA;	 Catch:{ Exception -> 0x0121 }
        r10 = java.lang.Long.valueOf(r10);	 Catch:{ Exception -> 0x0121 }
        r8[r9] = r10;	 Catch:{ Exception -> 0x0121 }
        com.tencent.mm.sdk.platformtools.ab.i(r6, r7, r8);	 Catch:{ Exception -> 0x0121 }
        r6 = r2.fUR;	 Catch:{ Exception -> 0x0121 }
        if (r6 == 0) goto L_0x013d;
    L_0x0112:
        r0 = "MicroMsg.OnlineVideoViewHelper";
        r1 = "moov had callback, do nothing.";
        com.tencent.mm.sdk.platformtools.ab.w(r0, r1);	 Catch:{ Exception -> 0x0121 }
    L_0x011b:
        r0 = r14.rly;	 Catch:{ Exception -> 0x0121 }
        com.tencent.mm.plugin.sns.ui.OnlineVideoView.r(r0);	 Catch:{ Exception -> 0x0121 }
        goto L_0x00c5;
    L_0x0121:
        r0 = move-exception;
        r1 = "MicroMsg.OnlineVideoView";
        r2 = new java.lang.StringBuilder;
        r3 = "online video callback error: ";
        r2.<init>(r3);
        r0 = r0.toString();
        r0 = r2.append(r0);
        r0 = r0.toString();
        com.tencent.mm.sdk.platformtools.ab.e(r1, r0);
        goto L_0x00c5;
    L_0x013d:
        r6 = r2.egA;	 Catch:{ Exception -> 0x0121 }
        r6 = (r0 > r6 ? 1 : (r0 == r6 ? 0 : -1));
        if (r6 <= 0) goto L_0x0175;
    L_0x0143:
        r2.egA = r0;	 Catch:{ Exception -> 0x0121 }
        r0 = com.tencent.mm.sdk.platformtools.bo.anU();	 Catch:{ Exception -> 0x0121 }
        r2.rlG = r0;	 Catch:{ Exception -> 0x0121 }
        r0 = r2.fUQ;	 Catch:{ Exception -> 0x0159 }
        if (r0 != 0) goto L_0x0178;
    L_0x014f:
        r0 = "MicroMsg.OnlineVideoViewHelper";
        r1 = "parser is null, thread is error.";
        com.tencent.mm.sdk.platformtools.ab.w(r0, r1);	 Catch:{ Exception -> 0x0159 }
        goto L_0x011b;
    L_0x0159:
        r0 = move-exception;
        r1 = "MicroMsg.OnlineVideoViewHelper";
        r2 = new java.lang.StringBuilder;	 Catch:{ Exception -> 0x0121 }
        r3 = "deal moov ready error: ";
        r2.<init>(r3);	 Catch:{ Exception -> 0x0121 }
        r0 = r0.toString();	 Catch:{ Exception -> 0x0121 }
        r0 = r2.append(r0);	 Catch:{ Exception -> 0x0121 }
        r0 = r0.toString();	 Catch:{ Exception -> 0x0121 }
        com.tencent.mm.sdk.platformtools.ab.e(r1, r0);	 Catch:{ Exception -> 0x0121 }
        goto L_0x011b;
    L_0x0175:
        r0 = r2.egA;	 Catch:{ Exception -> 0x0121 }
        goto L_0x0143;
    L_0x0178:
        r0 = r2.fUQ;	 Catch:{ Exception -> 0x0159 }
        r1 = r2.fUM;	 Catch:{ Exception -> 0x0159 }
        r0 = r0.v(r1, r4);	 Catch:{ Exception -> 0x0159 }
        if (r0 == 0) goto L_0x01cd;
    L_0x0182:
        r0 = r2.fUQ;	 Catch:{ Exception -> 0x0159 }
        r0 = r0.gkm;	 Catch:{ Exception -> 0x0159 }
        r2.fUR = r0;	 Catch:{ Exception -> 0x0159 }
        r0 = "MicroMsg.OnlineVideoViewHelper";
        r1 = "mp4 parse moov success. duration %d cdnMediaId %s isFastStart %b";
        r4 = 3;
        r4 = new java.lang.Object[r4];	 Catch:{ Exception -> 0x0159 }
        r5 = 0;
        r6 = r2.fUR;	 Catch:{ Exception -> 0x0159 }
        r6 = java.lang.Integer.valueOf(r6);	 Catch:{ Exception -> 0x0159 }
        r4[r5] = r6;	 Catch:{ Exception -> 0x0159 }
        r5 = 1;
        r6 = r2.fUL;	 Catch:{ Exception -> 0x0159 }
        r4[r5] = r6;	 Catch:{ Exception -> 0x0159 }
        r5 = 2;
        r6 = java.lang.Boolean.valueOf(r3);	 Catch:{ Exception -> 0x0159 }
        r4[r5] = r6;	 Catch:{ Exception -> 0x0159 }
        com.tencent.mm.sdk.platformtools.ab.i(r0, r1, r4);	 Catch:{ Exception -> 0x0159 }
        if (r3 != 0) goto L_0x01b3;
    L_0x01ab:
        r0 = new com.tencent.mm.plugin.sns.ui.ae$1;	 Catch:{ Exception -> 0x0159 }
        r0.<init>(r2);	 Catch:{ Exception -> 0x0159 }
        com.tencent.mm.sdk.platformtools.al.d(r0);	 Catch:{ Exception -> 0x0159 }
    L_0x01b3:
        r0 = r2.fUS;	 Catch:{ Exception -> 0x0159 }
        r1 = -1;
        if (r0 != r1) goto L_0x01c9;
    L_0x01b8:
        r0 = 1;
        r2.fUP = r0;	 Catch:{ Exception -> 0x0159 }
    L_0x01bb:
        r1 = com.tencent.mm.plugin.report.service.h.pYm;	 Catch:{ Exception -> 0x0159 }
        r2 = 354; // 0x162 float:4.96E-43 double:1.75E-321;
        r4 = 204; // 0xcc float:2.86E-43 double:1.01E-321;
        r6 = 1;
        r8 = 0;
        r1.a(r2, r4, r6, r8);	 Catch:{ Exception -> 0x0159 }
        goto L_0x011b;
    L_0x01c9:
        r0 = 2;
        r2.fUP = r0;	 Catch:{ Exception -> 0x0159 }
        goto L_0x01bb;
    L_0x01cd:
        r0 = "MicroMsg.OnlineVideoViewHelper";
        r1 = "mp4 parse moov error. cdnMediaId %s";
        r3 = 1;
        r3 = new java.lang.Object[r3];	 Catch:{ Exception -> 0x0159 }
        r4 = 0;
        r5 = r2.fUL;	 Catch:{ Exception -> 0x0159 }
        r3[r4] = r5;	 Catch:{ Exception -> 0x0159 }
        com.tencent.mm.sdk.platformtools.ab.w(r0, r1, r3);	 Catch:{ Exception -> 0x0159 }
        com.tencent.mm.modelvideo.o.alm();	 Catch:{ Exception -> 0x0159 }
        r0 = r2.fUL;	 Catch:{ Exception -> 0x0159 }
        r1 = 0;
        r2 = -1;
        com.tencent.mm.al.e.k(r0, r1, r2);	 Catch:{ Exception -> 0x0159 }
        r1 = com.tencent.mm.plugin.report.service.h.pYm;	 Catch:{ Exception -> 0x0159 }
        r2 = 354; // 0x162 float:4.96E-43 double:1.75E-321;
        r4 = 205; // 0xcd float:2.87E-43 double:1.013E-321;
        r6 = 1;
        r8 = 0;
        r1.a(r2, r4, r6, r8);	 Catch:{ Exception -> 0x0159 }
        r0 = com.tencent.mm.plugin.report.service.h.pYm;	 Catch:{ Exception -> 0x0159 }
        r1 = 13836; // 0x360c float:1.9388E-41 double:6.836E-320;
        r2 = 3;
        r2 = new java.lang.Object[r2];	 Catch:{ Exception -> 0x0159 }
        r3 = 0;
        r4 = 402; // 0x192 float:5.63E-43 double:1.986E-321;
        r4 = java.lang.Integer.valueOf(r4);	 Catch:{ Exception -> 0x0159 }
        r2[r3] = r4;	 Catch:{ Exception -> 0x0159 }
        r3 = 1;
        r4 = com.tencent.mm.sdk.platformtools.bo.anT();	 Catch:{ Exception -> 0x0159 }
        r4 = java.lang.Long.valueOf(r4);	 Catch:{ Exception -> 0x0159 }
        r2[r3] = r4;	 Catch:{ Exception -> 0x0159 }
        r3 = 2;
        r4 = "";
        r2[r3] = r4;	 Catch:{ Exception -> 0x0159 }
        r0.e(r1, r2);	 Catch:{ Exception -> 0x0159 }
        goto L_0x011b;
    L_0x021a:
        r0 = r14.rly;	 Catch:{ Exception -> 0x0121 }
        r1 = com.tencent.mm.plugin.sns.ui.OnlineVideoView.k(r0);	 Catch:{ Exception -> 0x0121 }
        r0 = r15.cHq;	 Catch:{ Exception -> 0x0121 }
        r0 = r0.cHr;	 Catch:{ Exception -> 0x0121 }
        r2 = r15.cHq;	 Catch:{ Exception -> 0x0121 }
        r2 = r2.offset;	 Catch:{ Exception -> 0x0121 }
        r3 = r15.cHq;	 Catch:{ Exception -> 0x0121 }
        r3 = r3.length;	 Catch:{ Exception -> 0x0121 }
        r4 = 0;
        r1.fUY = r4;	 Catch:{ Exception -> 0x0121 }
        if (r2 < 0) goto L_0x0233;
    L_0x0231:
        if (r3 >= 0) goto L_0x025b;
    L_0x0233:
        r0 = "MicroMsg.OnlineVideoViewHelper";
        r1 = "deal data available error offset[%d], length[%d]";
        r4 = 2;
        r4 = new java.lang.Object[r4];	 Catch:{ Exception -> 0x0121 }
        r5 = 0;
        r2 = java.lang.Integer.valueOf(r2);	 Catch:{ Exception -> 0x0121 }
        r4[r5] = r2;	 Catch:{ Exception -> 0x0121 }
        r2 = 1;
        r3 = java.lang.Integer.valueOf(r3);	 Catch:{ Exception -> 0x0121 }
        r4[r2] = r3;	 Catch:{ Exception -> 0x0121 }
        com.tencent.mm.sdk.platformtools.ab.w(r0, r1, r4);	 Catch:{ Exception -> 0x0121 }
    L_0x024d:
        r0 = r15.cHq;	 Catch:{ Exception -> 0x0121 }
        r0 = r0.length;	 Catch:{ Exception -> 0x0121 }
        if (r0 <= 0) goto L_0x00c5;
    L_0x0253:
        r0 = r14.rly;	 Catch:{ Exception -> 0x0121 }
        r1 = 1;
        r0.cV(r1);	 Catch:{ Exception -> 0x0121 }
        goto L_0x00c5;
    L_0x025b:
        r0 = r1.ZA(r0);	 Catch:{ Exception -> 0x0121 }
        if (r0 == 0) goto L_0x024d;
    L_0x0261:
        r0 = new java.lang.StringBuilder;	 Catch:{ Exception -> 0x0121 }
        r0.<init>();	 Catch:{ Exception -> 0x0121 }
        r4 = r1.fUL;	 Catch:{ Exception -> 0x0121 }
        r0 = r0.append(r4);	 Catch:{ Exception -> 0x0121 }
        r0 = r0.append(r2);	 Catch:{ Exception -> 0x0121 }
        r4 = "_";
        r0 = r0.append(r4);	 Catch:{ Exception -> 0x0121 }
        r0 = r0.append(r3);	 Catch:{ Exception -> 0x0121 }
        r0 = r0.toString();	 Catch:{ Exception -> 0x0121 }
        r4 = r1.rlC;	 Catch:{ Exception -> 0x0121 }
        r0 = r4.get(r0);	 Catch:{ Exception -> 0x0121 }
        r0 = (java.lang.Integer) r0;	 Catch:{ Exception -> 0x0121 }
        if (r0 == 0) goto L_0x02b9;
    L_0x0289:
        r4 = r0.intValue();	 Catch:{ Exception -> 0x0121 }
        if (r4 <= 0) goto L_0x02b9;
    L_0x028f:
        r0 = r0.intValue();	 Catch:{ Exception -> 0x0121 }
        r1.fUV = r0;	 Catch:{ Exception -> 0x0121 }
    L_0x0295:
        r0 = "MicroMsg.OnlineVideoViewHelper";
        r4 = "deal data available. offset[%d] length[%d] cachePlayTime[%d]";
        r5 = 3;
        r5 = new java.lang.Object[r5];	 Catch:{ Exception -> 0x0121 }
        r6 = 0;
        r2 = java.lang.Integer.valueOf(r2);	 Catch:{ Exception -> 0x0121 }
        r5[r6] = r2;	 Catch:{ Exception -> 0x0121 }
        r2 = 1;
        r3 = java.lang.Integer.valueOf(r3);	 Catch:{ Exception -> 0x0121 }
        r5[r2] = r3;	 Catch:{ Exception -> 0x0121 }
        r2 = 2;
        r1 = r1.fUV;	 Catch:{ Exception -> 0x0121 }
        r1 = java.lang.Integer.valueOf(r1);	 Catch:{ Exception -> 0x0121 }
        r5[r2] = r1;	 Catch:{ Exception -> 0x0121 }
        com.tencent.mm.sdk.platformtools.ab.i(r0, r4, r5);	 Catch:{ Exception -> 0x0121 }
        goto L_0x024d;
    L_0x02b9:
        r0 = r1.fUQ;	 Catch:{ Exception -> 0x02c2 }
        r0 = r0.cK(r2, r3);	 Catch:{ Exception -> 0x02c2 }
        r1.fUV = r0;	 Catch:{ Exception -> 0x02c2 }
        goto L_0x0295;
    L_0x02c2:
        r0 = move-exception;
        r4 = "MicroMsg.OnlineVideoViewHelper";
        r5 = new java.lang.StringBuilder;	 Catch:{ Exception -> 0x0121 }
        r6 = "deal data available file pos to video time error: ";
        r5.<init>(r6);	 Catch:{ Exception -> 0x0121 }
        r0 = r0.toString();	 Catch:{ Exception -> 0x0121 }
        r0 = r5.append(r0);	 Catch:{ Exception -> 0x0121 }
        r0 = r0.toString();	 Catch:{ Exception -> 0x0121 }
        com.tencent.mm.sdk.platformtools.ab.e(r4, r0);	 Catch:{ Exception -> 0x0121 }
        goto L_0x0295;
    L_0x02de:
        r0 = r14.rly;	 Catch:{ Exception -> 0x0121 }
        r1 = 1;
        r0.cV(r1);	 Catch:{ Exception -> 0x0121 }
        goto L_0x00c5;
    L_0x02e6:
        r0 = "MicroMsg.OnlineVideoView";
        r1 = "%d download finish. cdnMediaId %s sendReqCode %d favFromScene %d";
        r2 = 4;
        r2 = new java.lang.Object[r2];	 Catch:{ Exception -> 0x0121 }
        r3 = 0;
        r4 = r14.rly;	 Catch:{ Exception -> 0x0121 }
        r4 = r4.hashCode();	 Catch:{ Exception -> 0x0121 }
        r4 = java.lang.Integer.valueOf(r4);	 Catch:{ Exception -> 0x0121 }
        r2[r3] = r4;	 Catch:{ Exception -> 0x0121 }
        r3 = 1;
        r4 = r15.cHq;	 Catch:{ Exception -> 0x0121 }
        r4 = r4.cHr;	 Catch:{ Exception -> 0x0121 }
        r2[r3] = r4;	 Catch:{ Exception -> 0x0121 }
        r3 = 2;
        r4 = r14.rly;	 Catch:{ Exception -> 0x0121 }
        r4 = com.tencent.mm.plugin.sns.ui.OnlineVideoView.s(r4);	 Catch:{ Exception -> 0x0121 }
        r4 = java.lang.Integer.valueOf(r4);	 Catch:{ Exception -> 0x0121 }
        r2[r3] = r4;	 Catch:{ Exception -> 0x0121 }
        r3 = 3;
        r4 = r14.rly;	 Catch:{ Exception -> 0x0121 }
        r4 = com.tencent.mm.plugin.sns.ui.OnlineVideoView.t(r4);	 Catch:{ Exception -> 0x0121 }
        r4 = java.lang.Integer.valueOf(r4);	 Catch:{ Exception -> 0x0121 }
        r2[r3] = r4;	 Catch:{ Exception -> 0x0121 }
        com.tencent.mm.sdk.platformtools.ab.i(r0, r1, r2);	 Catch:{ Exception -> 0x0121 }
        r0 = r14.rly;	 Catch:{ Exception -> 0x0121 }
        r0 = com.tencent.mm.plugin.sns.ui.OnlineVideoView.k(r0);	 Catch:{ Exception -> 0x0121 }
        r1 = "MicroMsg.OnlineVideoViewHelper";
        r2 = "deal stream finish. playStatus %d cdnMediaId %s";
        r3 = 2;
        r3 = new java.lang.Object[r3];	 Catch:{ Exception -> 0x0121 }
        r4 = 0;
        r5 = r0.fUP;	 Catch:{ Exception -> 0x0121 }
        r5 = java.lang.Integer.valueOf(r5);	 Catch:{ Exception -> 0x0121 }
        r3[r4] = r5;	 Catch:{ Exception -> 0x0121 }
        r4 = 1;
        r5 = r0.fUL;	 Catch:{ Exception -> 0x0121 }
        r3[r4] = r5;	 Catch:{ Exception -> 0x0121 }
        com.tencent.mm.sdk.platformtools.ab.i(r1, r2, r3);	 Catch:{ Exception -> 0x0121 }
        r1 = 0;
        r0.fUY = r1;	 Catch:{ Exception -> 0x0121 }
        r1 = 3;
        r0.fUO = r1;	 Catch:{ Exception -> 0x0121 }
        r1 = com.tencent.mm.plugin.report.service.h.pYm;	 Catch:{ Exception -> 0x0121 }
        r2 = 354; // 0x162 float:4.96E-43 double:1.75E-321;
        r4 = 206; // 0xce float:2.89E-43 double:1.02E-321;
        r6 = 1;
        r8 = 0;
        r1.a(r2, r4, r6, r8);	 Catch:{ Exception -> 0x0121 }
        r1 = r0.fUP;	 Catch:{ Exception -> 0x0121 }
        if (r1 != 0) goto L_0x037c;
    L_0x0356:
        r1 = "MicroMsg.OnlineVideoViewHelper";
        r2 = "it had not moov callback and download finish start to play video.";
        com.tencent.mm.sdk.platformtools.ab.w(r1, r2);	 Catch:{ Exception -> 0x0121 }
        r0.csl();	 Catch:{ Exception -> 0x0121 }
    L_0x0362:
        r0 = r14.rly;	 Catch:{ Exception -> 0x0121 }
        r0 = com.tencent.mm.plugin.sns.ui.OnlineVideoView.s(r0);	 Catch:{ Exception -> 0x0121 }
        if (r0 <= 0) goto L_0x039d;
    L_0x036a:
        r0 = r14.rly;	 Catch:{ Exception -> 0x0121 }
        com.tencent.mm.plugin.sns.ui.OnlineVideoView.n(r0);	 Catch:{ Exception -> 0x0121 }
        r0 = r14.rly;	 Catch:{ Exception -> 0x0121 }
        r1 = r14.rly;	 Catch:{ Exception -> 0x0121 }
        r1 = com.tencent.mm.plugin.sns.ui.OnlineVideoView.s(r1);	 Catch:{ Exception -> 0x0121 }
        com.tencent.mm.plugin.sns.ui.OnlineVideoView.b(r0, r1);	 Catch:{ Exception -> 0x0121 }
        goto L_0x00c5;
    L_0x037c:
        r1 = r0.fUP;	 Catch:{ Exception -> 0x0121 }
        r2 = 5;
        if (r1 != r2) goto L_0x0362;
    L_0x0381:
        r1 = "MicroMsg.OnlineVideoViewHelper";
        r2 = new java.lang.StringBuilder;	 Catch:{ Exception -> 0x0121 }
        r3 = "it had play error, it request all video data finish, start to play.";
        r2.<init>(r3);	 Catch:{ Exception -> 0x0121 }
        r3 = r0.fUL;	 Catch:{ Exception -> 0x0121 }
        r2 = r2.append(r3);	 Catch:{ Exception -> 0x0121 }
        r2 = r2.toString();	 Catch:{ Exception -> 0x0121 }
        com.tencent.mm.sdk.platformtools.ab.w(r1, r2);	 Catch:{ Exception -> 0x0121 }
        r0.csl();	 Catch:{ Exception -> 0x0121 }
        goto L_0x0362;
    L_0x039d:
        r0 = r14.rly;	 Catch:{ Exception -> 0x0121 }
        r0 = com.tencent.mm.plugin.sns.ui.OnlineVideoView.t(r0);	 Catch:{ Exception -> 0x0121 }
        if (r0 <= 0) goto L_0x03bd;
    L_0x03a5:
        r0 = r14.rly;	 Catch:{ Exception -> 0x0121 }
        com.tencent.mm.plugin.sns.ui.OnlineVideoView.n(r0);	 Catch:{ Exception -> 0x0121 }
        r0 = r14.rly;	 Catch:{ Exception -> 0x0121 }
        r1 = r14.rly;	 Catch:{ Exception -> 0x0121 }
        r1 = com.tencent.mm.plugin.sns.ui.OnlineVideoView.t(r1);	 Catch:{ Exception -> 0x0121 }
        r2 = r14.rly;	 Catch:{ Exception -> 0x0121 }
        r2 = com.tencent.mm.plugin.sns.ui.OnlineVideoView.u(r2);	 Catch:{ Exception -> 0x0121 }
        com.tencent.mm.plugin.sns.ui.OnlineVideoView.b(r0, r1, r2);	 Catch:{ Exception -> 0x0121 }
        goto L_0x00c5;
    L_0x03bd:
        r0 = r14.rly;	 Catch:{ Exception -> 0x0121 }
        r0 = com.tencent.mm.plugin.sns.ui.OnlineVideoView.v(r0);	 Catch:{ Exception -> 0x0121 }
        if (r0 == 0) goto L_0x03d1;
    L_0x03c5:
        r0 = r14.rly;	 Catch:{ Exception -> 0x0121 }
        com.tencent.mm.plugin.sns.ui.OnlineVideoView.n(r0);	 Catch:{ Exception -> 0x0121 }
        r0 = r14.rly;	 Catch:{ Exception -> 0x0121 }
        com.tencent.mm.plugin.sns.ui.OnlineVideoView.w(r0);	 Catch:{ Exception -> 0x0121 }
        goto L_0x00c5;
    L_0x03d1:
        r0 = r14.rly;	 Catch:{ Exception -> 0x0121 }
        r1 = 1;
        r0.cV(r1);	 Catch:{ Exception -> 0x0121 }
        goto L_0x00c5;
    L_0x03d9:
        r0 = r14.rly;	 Catch:{ Exception -> 0x0121 }
        r0 = com.tencent.mm.plugin.sns.ui.OnlineVideoView.j(r0);	 Catch:{ Exception -> 0x0121 }
        if (r0 != r2) goto L_0x043d;
    L_0x03e1:
        r0 = r14.rly;	 Catch:{ Exception -> 0x0121 }
        r0 = com.tencent.mm.plugin.sns.ui.OnlineVideoView.k(r0);	 Catch:{ Exception -> 0x0121 }
        r1 = r15.cHq;	 Catch:{ Exception -> 0x0121 }
        r1 = r1.cHr;	 Catch:{ Exception -> 0x0121 }
        r2 = r15.cHq;	 Catch:{ Exception -> 0x0121 }
        r2 = r2.offset;	 Catch:{ Exception -> 0x0121 }
        r3 = r15.cHq;	 Catch:{ Exception -> 0x0121 }
        r3 = r3.length;	 Catch:{ Exception -> 0x0121 }
        r1 = r0.ZA(r1);	 Catch:{ Exception -> 0x0121 }
        if (r1 == 0) goto L_0x0432;
    L_0x03f9:
        r0.progress = r2;	 Catch:{ Exception -> 0x0121 }
        r0.total = r3;	 Catch:{ Exception -> 0x0121 }
        r1 = r0.progress;	 Catch:{ Exception -> 0x0121 }
        r1 = r1 * 100;
        r2 = r0.total;	 Catch:{ Exception -> 0x0121 }
        r1 = r1 / r2;
        r0.rlE = r1;	 Catch:{ Exception -> 0x0121 }
        r1 = "MicroMsg.OnlineVideoViewHelper";
        r2 = "deal video[%s] progress callback[%d, %d]. downloadedPercent[%d]";
        r3 = 4;
        r3 = new java.lang.Object[r3];	 Catch:{ Exception -> 0x0121 }
        r4 = 0;
        r5 = r0.fUL;	 Catch:{ Exception -> 0x0121 }
        r3[r4] = r5;	 Catch:{ Exception -> 0x0121 }
        r4 = 1;
        r5 = r0.progress;	 Catch:{ Exception -> 0x0121 }
        r5 = java.lang.Integer.valueOf(r5);	 Catch:{ Exception -> 0x0121 }
        r3[r4] = r5;	 Catch:{ Exception -> 0x0121 }
        r4 = 2;
        r5 = r0.total;	 Catch:{ Exception -> 0x0121 }
        r5 = java.lang.Integer.valueOf(r5);	 Catch:{ Exception -> 0x0121 }
        r3[r4] = r5;	 Catch:{ Exception -> 0x0121 }
        r4 = 3;
        r5 = r0.rlE;	 Catch:{ Exception -> 0x0121 }
        r5 = java.lang.Integer.valueOf(r5);	 Catch:{ Exception -> 0x0121 }
        r3[r4] = r5;	 Catch:{ Exception -> 0x0121 }
        com.tencent.mm.sdk.platformtools.ab.i(r1, r2, r3);	 Catch:{ Exception -> 0x0121 }
    L_0x0432:
        r1 = r0.rlE;	 Catch:{ Exception -> 0x0121 }
        r2 = 100;
        if (r1 < r2) goto L_0x00c5;
    L_0x0438:
        r1 = 3;
        r0.fUO = r1;	 Catch:{ Exception -> 0x0121 }
        goto L_0x00c5;
    L_0x043d:
        r0 = r14.rly;	 Catch:{ Exception -> 0x0121 }
        r0 = com.tencent.mm.plugin.sns.ui.OnlineVideoView.j(r0);	 Catch:{ Exception -> 0x0121 }
        if (r0 != r3) goto L_0x00c5;
    L_0x0445:
        r0 = r14.rly;	 Catch:{ Exception -> 0x0121 }
        r1 = r15.cHq;	 Catch:{ Exception -> 0x0121 }
        r1 = r1.offset;	 Catch:{ Exception -> 0x0121 }
        r2 = r15.cHq;	 Catch:{ Exception -> 0x0121 }
        r2 = r2.length;	 Catch:{ Exception -> 0x0121 }
        com.tencent.mm.plugin.sns.ui.OnlineVideoView.a(r0, r1, r2);	 Catch:{ Exception -> 0x0121 }
        goto L_0x00c5;
    L_0x0454:
        r0 = r14.rly;	 Catch:{ Exception -> 0x0121 }
        r0 = com.tencent.mm.plugin.sns.ui.OnlineVideoView.k(r0);	 Catch:{ Exception -> 0x0121 }
        r1 = "MicroMsg.OnlineVideoViewHelper";
        r2 = "deal had dup video. cdnMediaId %s";
        r3 = 1;
        r3 = new java.lang.Object[r3];	 Catch:{ Exception -> 0x0121 }
        r4 = 0;
        r5 = r0.fUL;	 Catch:{ Exception -> 0x0121 }
        r3[r4] = r5;	 Catch:{ Exception -> 0x0121 }
        com.tencent.mm.sdk.platformtools.ab.i(r1, r2, r3);	 Catch:{ Exception -> 0x0121 }
        r0.csl();	 Catch:{ Exception -> 0x0121 }
        goto L_0x00c5;
        */
        throw new UnsupportedOperationException("Method not decompiled: com.tencent.mm.plugin.sns.ui.OnlineVideoView$5.a(com.tencent.mm.g.a.lp):boolean");
    }
}
