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

import android.view.View;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.ap.a;
import com.tencent.mm.sdk.platformtools.bo;
import org.xwalk.core.XWalkFeature;

class OnlineVideoView$16 implements a {
    final /* synthetic */ OnlineVideoView rly;

    OnlineVideoView$16(OnlineVideoView onlineVideoView) {
        this.rly = onlineVideoView;
    }

    public final boolean BI() {
        AppMethodBeat.i(38405);
        if (OnlineVideoView.k(this.rly) == null || OnlineVideoView.d(this.rly) == null) {
            AppMethodBeat.o(38405);
            return false;
        }
        if (((View) OnlineVideoView.d(this.rly)).getAlpha() < 1.0f) {
            OnlineVideoView.m(this.rly);
        }
        if (OnlineVideoView.d(this.rly).isPlaying()) {
            OnlineVideoView.n(this.rly);
        }
        try {
            Object obj;
            if (bo.isNullOrNil(OnlineVideoView.k(this.rly).fUL)) {
                obj = null;
            } else {
                obj = 1;
            }
            if (obj == null) {
                AppMethodBeat.o(38405);
                return false;
            }
            boolean mm = OnlineVideoView.k(this.rly).mm(OnlineVideoView.d(this.rly).getCurrentPosition() / XWalkFeature.INTERFACE_GEO_LOCATION_PERMISSION);
            AppMethodBeat.o(38405);
            return mm;
        } catch (Exception e) {
            ab.e("MicroMsg.OnlineVideoView", "online video timer check error : " + e.toString());
            AppMethodBeat.o(38405);
            return false;
        }
    }
}
