QQ浏览器 v12.2.3.7053版本的 MD5 值为:8285ab3059e5c8b521a264dfbc5c3685

以下内容为反编译后的 QbVideoHost.java 源代码,内容仅作参考


package com.tencent.mtt.browser.video.engine;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.text.TextUtils;
import android.view.View;
import com.eclipsesource.mmv8.Platform;
import com.taf.JceStruct;
import com.tencent.common.http.Apn;
import com.tencent.common.http.ContentType;
import com.tencent.common.http.QueenConfig;
import com.tencent.common.sniffer.SniffObserver;
import com.tencent.common.threadpool.BrowserExecutorSupplier;
import com.tencent.common.utils.FileUtils;
import com.tencent.common.utils.UrlUtils;
import com.tencent.common.wup.QBServiceProxy;
import com.tencent.common.wup.extension.WUPStatClient;
import com.tencent.common.wup.extension.WUPStatRequest;
import com.tencent.mtt.ContextHolder;
import com.tencent.mtt.base.functionwindow.ActivityHandler;
import com.tencent.mtt.base.functionwindow.AppWindowController;
import com.tencent.mtt.base.functionwindow.IFunctionWndFactory;
import com.tencent.mtt.base.functionwindow.MttFunctionActivity;
import com.tencent.mtt.base.notification.facade.INotify;
import com.tencent.mtt.base.stat.PCGStatManager;
import com.tencent.mtt.base.stat.StatManager;
import com.tencent.mtt.base.wup.DomainListDataManager;
import com.tencent.mtt.base.wup.GUIDManager;
import com.tencent.mtt.browser.WebEngine;
import com.tencent.mtt.browser.download.core.impl.DownloadServiceManager;
import com.tencent.mtt.browser.download.engine.DownloadTask;
import com.tencent.mtt.browser.file.facade.IFileOpenManager;
import com.tencent.mtt.browser.file.facade.IFileStoreHelper;
import com.tencent.mtt.browser.multiwindow.facade.IMultiWindowService;
import com.tencent.mtt.browser.setting.manager.SkinManager;
import com.tencent.mtt.browser.video.MTTVideoProxy;
import com.tencent.mtt.browser.video.VideoPlayRestoreExtension;
import com.tencent.mtt.browser.video.VideoService;
import com.tencent.mtt.browser.video.external.dlna.VideoDlnaController;
import com.tencent.mtt.browser.video.utils.SafeBundleUtil;
import com.tencent.mtt.browser.video.utils.VideoStatExtKt;
import com.tencent.mtt.browser.video.utils.VideoUtils;
import com.tencent.mtt.browser.webbussiness.facade.IWebRecognizeService;
import com.tencent.mtt.browser.window.UrlParams;
import com.tencent.mtt.businesscenter.facade.IFrameworkDelegate;
import com.tencent.mtt.external.qrcode.common.ActionConstants2;
import com.tencent.mtt.external.setting.base.ImageLoadManager;
import com.tencent.mtt.hippy.modules.nativemodules.animation.AnimationModule;
import com.tencent.mtt.logcontroller.facade.reportdebug.IReportDebugService;
import com.tencent.mtt.logcontroller.facade.reportdebug.bean.PerformanceReportBean;
import com.tencent.mtt.qbcontext.core.QBContext;
import com.tencent.mtt.qbinfo.QUAUtils;
import com.tencent.mtt.qbinfo.UserAgentUtils;
import com.tencent.mtt.setting.BaseSettings;
import com.tencent.mtt.setting.PublicSettingManager;
import com.tencent.mtt.stabilization.rqd.RqdService;
import com.tencent.mtt.video.browser.export.data.H5VideoEpisodeInfo;
import com.tencent.mtt.video.browser.export.data.IVideoDataManager;
import com.tencent.mtt.video.export.H5VideoInfo;
import com.tencent.mtt.video.export.IH5VideoPlayer;
import com.tencent.mtt.video.export.IMTTVideoPlayer;
import com.tencent.mtt.video.export.VideoHost;
import com.tencent.mtt.video.export.VideoProxyDefault;
import com.tencent.mtt.video.internal.facade.IVideoService;
import com.tencent.mtt.video.internal.facade.VideoPlayerPanelChangedListener;
import com.tencent.mtt.view.toast.MttToaster;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.net.URL;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.json.JSONException;
import org.json.JSONObject;

public class QbVideoHost extends VideoHost {

    static Map<String, String> f45483a = new HashMap();

    private VideoPlayerCountChangedListener f45484b;

    private VideoPlayerPanelChangedListener f45485c;

    private final Handler f45486d;

    public QbVideoHost(Context context) {
        super(context);
        this.f45486d = new Handler(BrowserExecutorSupplier.getLooperForRunShortTime());
    }

    public static int a() {
        return PublicSettingManager.a().getBoolean("key_video_is_default_fullscreen", true) ? 105 : 102;
    }

    public static H5VideoInfo a(H5VideoEpisodeInfo h5VideoEpisodeInfo, H5VideoInfo h5VideoInfo) {
        String str;
        if (h5VideoEpisodeInfo == null) {
            return h5VideoInfo;
        }
        if (h5VideoInfo == null) {
            h5VideoInfo = new H5VideoInfo();
        }
        h5VideoInfo.mWebUrl = h5VideoEpisodeInfo.mWebUrl;
        h5VideoInfo.mWebTitle = h5VideoEpisodeInfo.mTitle;
        if ((h5VideoEpisodeInfo.mVideoUrl == null || !h5VideoEpisodeInfo.mVideoUrl.startsWith("qvod://")) && 6 != h5VideoEpisodeInfo.mDramaType) {
            if ((h5VideoEpisodeInfo.mVideoUrl != null && h5VideoEpisodeInfo.mVideoUrl.startsWith("bdhd://")) || 7 == h5VideoEpisodeInfo.mDramaType) {
                str = ContentType.MIME_BDHD;
            }
            if (h5VideoEpisodeInfo.mDramaType != 4 || h5VideoEpisodeInfo.mDramaType == 3) {
                h5VideoInfo.mFromWhere = 2;
            }
            if (h5VideoEpisodeInfo.mDramaType != 1 || h5VideoEpisodeInfo.mDramaType == 2) {
                h5VideoInfo.mFromWhere = 1;
            }
            return h5VideoInfo;
        }
        str = ContentType.MIME_QVOD;
        h5VideoInfo.mMimeType = str;
        if (h5VideoEpisodeInfo.mDramaType != 4) {
        }
        h5VideoInfo.mFromWhere = 2;
        if (h5VideoEpisodeInfo.mDramaType != 1) {
        }
        h5VideoInfo.mFromWhere = 1;
        return h5VideoInfo;
    }

    public static String a(String str) {
        FileInputStream fileInputStream;
        String readLine;
        String str2;
        String str3 = "";
        if (!TextUtils.isEmpty(str) && str.endsWith(".mht")) {
            try {
                if (!str.startsWith("file:///")) {
                    str2 = str.startsWith("FILE:///") ? "FILE://" : "file://";
                    fileInputStream = null;
                    fileInputStream = FileUtils.i(new File(str));
                    readLine = new DataInputStream(fileInputStream).readLine();
                    if (!TextUtils.isEmpty(readLine) && readLine.startsWith("From: <")) {
                        str3 = readLine.replace("From: <", "").replace(">", "").trim();
                    }
                }
                fileInputStream = FileUtils.i(new File(str));
                readLine = new DataInputStream(fileInputStream).readLine();
                if (!TextUtils.isEmpty(readLine)) {
                    str3 = readLine.replace("From: <", "").replace(">", "").trim();
                }
            } catch (IOException unused) {
            } catch (Throwable th) {
                if (fileInputStream != null) {
                    try {
                        fileInputStream.close();
                    } catch (IOException unused2) {
                    }
                }
                throw th;
            }
            str = str.replace(str2, "");
            fileInputStream = null;
        }
        return str3;
    }

    private void a(String str, Bundle bundle) {
        IReportDebugService iReportDebugService;
        if (!"performance_show".equals(str) || (iReportDebugService = (IReportDebugService) QBContext.getInstance().getService(IReportDebugService.class)) == null) {
            return;
        }
        PerformanceReportBean performanceReportBean = new PerformanceReportBean(IH5VideoPlayer.TAG);
        performanceReportBean.a(bundle.getString("title") + "\n" + bundle.getString("info"));
        iReportDebugService.addReportInfo(performanceReportBean);
    }

    private boolean a(Bundle bundle) {
        if (bundle == null) {
            return true;
        }
        String string = bundle.getString("url");
        if (TextUtils.isEmpty(string)) {
            return true;
        }
        StringBuffer stringBuffer = new StringBuffer();
        stringBuffer.append("mttbrowser://url=");
        stringBuffer.append(string);
        stringBuffer.append(",windowType=1");
        String stringBuffer2 = stringBuffer.toString();
        bundle.putString("url", stringBuffer2);
        Intent intent = new Intent("android.intent.action.VIEW");
        intent.setData(Uri.parse(stringBuffer2));
        intent.setPackage("com.tencent.mtt");
        intent.putExtras(bundle);
        Activity a2 = ActivityHandler.b().a();
        try {
            if (a2 != null) {
                a2.startActivity(intent);
            } else {
                ContextHolder.getAppContext().startActivity(intent);
            }
            return false;
        } catch (Exception e) {
            reportCatchedException(Thread.currentThread(), e, "openAdvPlayer", null);
            return false;
        }
    }

    private void b(final Bundle bundle) {
        if (bundle == null) {
            return;
        }
        this.f45486d.post(new Runnable() {
            @Override
            public void run() {
                for (String str : bundle.keySet()) {
                    String string = bundle.getString(str);
                    if (!QbVideoHost.this.b(str) || TextUtils.isEmpty(string)) {
                        RqdService.a().b(str);
                    } else {
                        RqdService.a().b(str, string);
                    }
                }
            }
        });
    }

    public boolean b(String str) {
        if (TextUtils.isEmpty(str) || "weburl".equals(str)) {
            return false;
        }
        return !"videourl".equals(str);
    }

    private int c() {
        if (Apn.isWifiMode(true)) {
            return 1;
        }
        if (Apn.is4GMode(true)) {
            return 4;
        }
        if (Apn.is3GMode(true)) {
            return 3;
        }
        return Apn.is2GMode(true) ? 2 : 0;
    }

    public void a(VideoPlayerCountChangedListener videoPlayerCountChangedListener) {
        this.f45484b = videoPlayerCountChangedListener;
    }

    protected boolean b() {
        return !H5VideoPlayerManager.f45463a;
    }

    @Override
    public void callHostFunction(String str, Bundle bundle) {
        boolean a2;
        String str2;
        String a3;
        String str3;
        if (str == null) {
            return;
        }
        if (!TextUtils.equals("getIsQueenSim", str)) {
            if (TextUtils.equals("getNetInfo", str) && bundle != null) {
                int c2 = c();
                int i = QueenConfig.getInfoProvider().isQueenUser() ? 2 : -1;
                bundle.putString("unicom", "");
                StringBuilder sb = new StringBuilder();
                sb.append(QueenConfig.isQueenEnable() ? 2 : -1);
                sb.append("");
                bundle.putString("unicomtype", sb.toString());
                bundle.putString("newnettype", c2 + "");
                bundle.putString("netoperator", i + "");
                return;
            }
            if (str.equals("putVideoInfoToRQD")) {
                b(bundle);
            } else if (!"openAdvPlayer".equals(str)) {
                if ("getGuid".equals(str)) {
                    a3 = GUIDManager.a().f();
                    str3 = "guid";
                } else if ("getQUA2_V3".equals(str)) {
                    a3 = QUAUtils.a();
                    str3 = "qua";
                } else if ("isHostInDomainList".equals(str)) {
                    a2 = DomainListDataManager.a().a(bundle.getString("url"), bundle.getInt("domainType"));
                    str2 = "isIn";
                } else if ("showRecoverPlayBubble".equals(str)) {
                    VideoPlayRestoreExtension.a(bundle);
                }
                bundle.putString(str3, a3);
            } else if (a(bundle)) {
                return;
            }
            a(str, bundle);
        }
        a2 = QueenConfig.isQueenEnable();
        str2 = "isQueenSim";
        bundle.putBoolean(str2, a2);
        a(str, bundle);
    }

    @Override
    public boolean checkCanSwitchScreen() {
        if (!b()) {
            return true;
        }
        try {
            return !((IMultiWindowService) QBContext.getInstance().getService(IMultiWindowService.class)).isAnimation();
        } catch (Exception unused) {
            return true;
        }
    }

    @Override
    public String getAccountInfo() {
        return null;
    }

    @Override
    public String getCookie(String str, boolean z) {
        if (TextUtils.isEmpty(str)) {
            return null;
        }
        try {
            return WebEngine.e().a(str, z);
        } catch (NullPointerException unused) {
            return null;
        }
    }

    @Override
    public int getDefaultFullscreenMode() {
        return a();
    }

    @Override
    @Deprecated
    public String getLocalIp() {
        return null;
    }

    @Override
    public float getStatusBarHeight() {
        return BaseSettings.a().m();
    }

    @Override
    public String getUa() {
        return UserAgentUtils.a();
    }

    @Override
    public String getVideoCacheDir() {
        IVideoService iVideoService = (IVideoService) QBContext.getInstance().getService(IVideoService.class);
        return iVideoService != null ? iVideoService.getMovieCacheDirPath() : "";
    }

    @Override
    public String getVideoDownloadDir() {
        IVideoService iVideoService = (IVideoService) QBContext.getInstance().getService(IVideoService.class);
        return iVideoService != null ? iVideoService.getMovieDownloadDirPath() : "";
    }

    @Override
    public int getVideoHostType() {
        return H5VideoPlayerManager.f45463a ? 2 : 1;
    }

    @Override
    public <T> T getVideoService() {
        return (T) VideoService.getInstance();
    }

    @Override
    public String getWebUrlByFilePath(String str) {
        IFileStoreHelper iFileStoreHelper = (IFileStoreHelper) QBContext.getInstance().getService(IFileStoreHelper.class);
        return iFileStoreHelper != null ? iFileStoreHelper.getDownLoadVideoRefer(str) : "";
    }

    @Override
    public void goToMyVideo(boolean z, int i) {
        if (z) {
            H5VideoPlayerManager.getInstance().g();
            return;
        }
        Bundle a2 = SafeBundleUtil.a();
        a2.putString("subpath", AnimationModule.FOLLOW);
        if (i == 102) {
            a2.putInt("screenmode", 4);
        }
        ((IFrameworkDelegate) QBContext.getInstance().getService(IFrameworkDelegate.class)).doLoad(new UrlParams(IFunctionWndFactory.WND_VIDEO).d(2).a(a2).d(true).a(MttFunctionActivity.class));
    }

    @Override
    public boolean isCacheUsing(String str) {
        return (str == null || DownloadServiceManager.b().e(str) == null) ? false : true;
    }

    @Override
    public boolean isCanAttachVideoToWebView(VideoProxyDefault videoProxyDefault) {
        if (H5VideoPlayerManager.f45463a) {
            return false;
        }
        Activity a2 = ActivityHandler.b().a();
        if (a2 != null) {
            View decorView = a2.getWindow().getDecorView();
            Object invokeWebViewClientMiscCallBackMethod = videoProxyDefault.invokeWebViewClientMiscCallBackMethod("getWebView", null);
            if ((invokeWebViewClientMiscCallBackMethod instanceof View) && ((View) invokeWebViewClientMiscCallBackMethod).getRootView() == decorView.getRootView()) {
                return true;
            }
        }
        if (ActivityHandler.b().a() != videoProxyDefault.getContext()) {
            return false;
        }
        return videoProxyDefault.isActive();
    }

    @Override
    public boolean isEnableLoadImage() {
        if (H5VideoPlayerManager.f45463a) {
            return false;
        }
        return ImageLoadManager.getInstance().getIsEnableLoadImage();
    }

    @Override
    public boolean isIncognito() {
        if (H5VideoPlayerManager.f45463a) {
            return false;
        }
        return PublicSettingManager.a().e();
    }

    @Override
    public boolean isNightMode() {
        if (H5VideoPlayerManager.f45463a) {
            return false;
        }
        return SkinManager.s().l();
    }

    @Override
    public boolean isPlayerInMyVideo(View view) {
        Activity a2;
        View decorView;
        return (H5VideoPlayerManager.f45463a || H5VideoPlayerManager.getInstance().f45464b == null || (a2 = ActivityHandler.b().a()) == null || (decorView = a2.getWindow().getDecorView()) == null || view != decorView) ? false : true;
    }

    @Override
    public boolean isUrlInBackList(String str, String str2) {
        if (H5VideoPlayerManager.f45463a) {
            return true;
        }
        if (FileUtils.l(str)) {
            str = a(UrlUtils.decode(str));
        } else if (TextUtils.isEmpty(str) || str.toLowerCase().startsWith("qb://")) {
            str = str2;
        }
        return VideoUtils.a(str);
    }

    @Override
    public boolean isUrlInBlackList(String str, String str2, int i) {
        if (TextUtils.isEmpty(str) || str.toLowerCase().startsWith("qb://")) {
            str = str2;
        }
        return VideoUtils.a(str, i);
    }

    @Override
    public boolean isVideoDownloadByQB(String str) {
        IFileStoreHelper iFileStoreHelper = (IFileStoreHelper) QBContext.getInstance().getService(IFileStoreHelper.class);
        if (iFileStoreHelper != null) {
            return iFileStoreHelper.isDownLoadVideo(str);
        }
        return false;
    }

    @Override
    public void jumpToFeedBack(String str, long j) {
        jumpToFeedBack(null, str, j, null);
    }

    @Override
    public void jumpToFeedBack(String str, long j, Map<String, String> map) {
        jumpToFeedBack(null, str, j, null);
    }

    @Override
    public void jumpToFeedBack(String str, String str2, long j, Map<String, String> map) {
        if (str == null) {
            str = "https://bbs.mb.qq.com/mobilefb/feedback?arg=";
        }
        JSONObject jSONObject = new JSONObject();
        try {
            jSONObject.put("guid", GUIDManager.a().f());
            jSONObject.put("starttime", j);
            jSONObject.put("platform", Platform.ANDROID);
            if (!TextUtils.isEmpty(str2)) {
                jSONObject.put("weburl", str2);
            }
            jSONObject.put("dlnaUseMultiProc", VideoDlnaController.useMultiProcess());
            if (map != null) {
                for (String str3 : map.keySet()) {
                    jSONObject.put(str3, map.get(str3));
                }
            }
        } catch (JSONException unused) {
        }
        H5VideoPlayerManager.getInstance().b(str + URLEncoder.encode(jSONObject.toString()));
    }

    @Override
    public void matchEpisodeInfo(H5VideoInfo h5VideoInfo) {
        DownloadTask a2;
        IVideoDataManager r;
        if (H5VideoPlayerManager.f45463a || !TextUtils.isEmpty(h5VideoInfo.mWebUrl) || (a2 = DownloadServiceManager.b().a(h5VideoInfo.mVideoUrl)) == null) {
            return;
        }
        if (a2.i() != -1 && (r = H5VideoPlayerManager.getInstance().r()) != null) {
            a(r.getEpisodeInfo(a2.i()), h5VideoInfo);
        }
        if (!TextUtils.isEmpty(h5VideoInfo.mWebUrl) || TextUtils.isEmpty(a2.q())) {
            return;
        }
        h5VideoInfo.mWebUrl = a2.q();
    }

    @Override
    public void onPlayerCountChanged(int i) {
        VideoPlayerCountChangedListener videoPlayerCountChangedListener = this.f45484b;
        if (videoPlayerCountChangedListener != null) {
            videoPlayerCountChangedListener.a(i);
        }
    }

    @Override
    public void onPlayerFullScreen() {
        if (H5VideoPlayerManager.f45463a) {
            return;
        }
        if (b()) {
            try {
                if (((IMultiWindowService) QBContext.getInstance().getService(IMultiWindowService.class)).isShowing()) {
                    ((IMultiWindowService) QBContext.getInstance().getService(IMultiWindowService.class)).dismissAtOnce();
                }
            } catch (Exception unused) {
            }
        }
        if (b()) {
            try {
                if (ActivityHandler.b().n() != null) {
                    ((INotify) QBContext.getInstance().getService(INotify.class)).onHideMessageBubbleBtn();
                }
            } catch (Exception unused2) {
            }
        }
    }

    @Override
    public void onPlayerPannelHide() {
        VideoPlayerPanelChangedListener videoPlayerPanelChangedListener = this.f45485c;
        if (videoPlayerPanelChangedListener != null) {
            videoPlayerPanelChangedListener.b();
        }
    }

    @Override
    public void onPlayerPannelShow() {
        VideoPlayerPanelChangedListener videoPlayerPanelChangedListener = this.f45485c;
        if (videoPlayerPanelChangedListener != null) {
            videoPlayerPanelChangedListener.a();
        }
    }

    @Override
    public void onSniffPlayFailed(String str) {
        openUrl(str, false);
    }

    @Override
    public void onVideoCanNotSupport(String str) {
        IFileOpenManager iFileOpenManager;
        ArrayList arrayList = new ArrayList();
        IntentFilter intentFilter = new IntentFilter(ActionConstants2.f56470a);
        intentFilter.addCategory("android.intent.category.HOME");
        arrayList.add(intentFilter);
        Activity a2 = ActivityHandler.b().a();
        if (a2 == null) {
            return;
        }
        String packageName = a2.getPackageName();
        ArrayList arrayList2 = new ArrayList();
        a2.getPackageManager().getPreferredActivities(arrayList, arrayList2, packageName);
        if (arrayList2.size() <= 0 && (iFileOpenManager = (IFileOpenManager) QBContext.getInstance().getService(IFileOpenManager.class)) != null) {
            iFileOpenManager.openVideoFileBySystem(str, false);
        }
    }

    @Override
    public void openUrl(String str, boolean z) {
        if (b()) {
            AppWindowController.getInstance().a();
            H5VideoPlayerManager.getInstance().a(str, z);
        }
    }

    @Override
    public void openVideoInDetailPage(String str, String str2, long j, String str3, String str4) {
        IWebRecognizeService iWebRecognizeService = (IWebRecognizeService) QBContext.getInstance().getService(IWebRecognizeService.class);
        if (iWebRecognizeService != null) {
            iWebRecognizeService.openVideoInCustomPage(IWebRecognizeService.WEBREC_CONFIG_KEY_WEB_VIDEO, str, str2, j, str3, str4, "web");
        }
    }

    @Override
    public void play(H5VideoInfo h5VideoInfo) {
        MTTVideoProxy.a().a(h5VideoInfo);
    }

    @Override
    public void reportCatchedException(Thread thread, Throwable th, String str, byte[] bArr) {
        RqdService.a().a(thread, th, str, bArr);
    }

    @Override
    public boolean reqSwitchProxy(IMTTVideoPlayer iMTTVideoPlayer, H5VideoInfo h5VideoInfo) {
        MTTVideoProxy a2 = MTTVideoProxy.a();
        a2.setVideoPlayer(iMTTVideoPlayer);
        a2.setVideoInfo(h5VideoInfo);
        iMTTVideoPlayer.setVideoProxy(a2);
        return true;
    }

    @Override
    public int sendNoneRealTimeReq(String str, String str2, JceStruct jceStruct, String str3) {
        WUPStatRequest wUPStatRequest = new WUPStatRequest(str, str2);
        wUPStatRequest.put(str3, jceStruct);
        wUPStatRequest.setClassLoader(jceStruct.getClass().getClassLoader());
        return WUPStatClient.a().b(wUPStatRequest);
    }

    @Override
    public void sendRealTime(final String str, final String str2, final JceStruct jceStruct, final String str3, final int i) {
        BrowserExecutorSupplier.forTimeoutTasks().execute(new Runnable() {
            @Override
            public void run() {
                WUPStatRequest wUPStatRequest = new WUPStatRequest(str, str2);
                wUPStatRequest.put(str3, jceStruct);
                wUPStatRequest.setClassLoader(jceStruct.getClass().getClassLoader());
                WUPStatClient.a().a(wUPStatRequest, i);
            }
        });
    }

    @Override
    public void setCookie(URL url, Map<String, List<String>> map, boolean z) {
        WebEngine.e().a(url, map);
    }

    @Override
    public boolean shouldDisableAutoplay(String str) {
        IWebRecognizeService iWebRecognizeService = (IWebRecognizeService) QBContext.getInstance().getService(IWebRecognizeService.class);
        if (iWebRecognizeService != null) {
            return iWebRecognizeService.checkWebRecConfigSync(IWebRecognizeService.WEBREC_CONFIG_KEY_AUTOPLAY_DISABLE, str, false, "web");
        }
        return false;
    }

    @Override
    public boolean shouldDisablePauseAD(String str) {
        IWebRecognizeService iWebRecognizeService = (IWebRecognizeService) QBContext.getInstance().getService(IWebRecognizeService.class);
        if (iWebRecognizeService != null) {
            return iWebRecognizeService.checkWebRecConfigSync(411, str, false, "web");
        }
        return false;
    }

    @Override
    public boolean shouldPlayInDetailPage(String str) {
        return VideoUtils.a(IWebRecognizeService.WEBREC_CONFIG_KEY_WEB_VIDEO, str, "web");
    }

    @Override
    public void showToast(String str, int i) {
        MttToaster.show(str, i);
    }

    @Override
    public void sniffVideo(String str, int i, SniffObserver sniffObserver) {
    }

    @Override
    public void sniffVideo(String str, int i, SniffObserver sniffObserver, int i2) {
    }

    @Override
    public void statThrdCallLogin() {
        QBServiceProxy.getInstance(ContextHolder.getAppContext()).doLogin(QBServiceProxy.E_LOGIN_TYPE_VIDEO);
    }

    @Override
    public void statVideoEndForDaTong(final String str, final String str2, final long j, final long j2, final int i, final int i2, final int i3, final int i4, Map<String, String> map) {
        PCGStatManager.b(new PCGStatManager.VideoCommonParams() {
            {
                this.f33048a = str;
                this.f33049b = str2;
                this.f33050c = j;
                this.f33051d = i;
                this.e = i2;
                this.f = i3;
                this.g = i4;
                this.h = j2;
            }
        }, map);
    }

    @Override
    public void statVideoStartForDaTong(final String str, final String str2, final long j, final int i, final int i2, final int i3, final int i4, Map<String, String> map) {
        PCGStatManager.a(new PCGStatManager.VideoCommonParams() {
            {
                this.f33048a = str;
                this.f33049b = str2;
                this.f33050c = j;
                this.f33051d = i;
                this.e = i2;
                this.f = i3;
                this.g = i4;
            }
        }, map);
    }

    @Override
    public void statWithBeacon(String str, Map<String, String> map) {
        StatManager.b().b(str, map);
    }

    @Override
    public boolean supportGoToMyVideo() {
        return b();
    }

    @Override
    public boolean supportSniff(String str) {
        return false;
    }

    @Override
    public void switchMttProxy(H5VideoEpisodeInfo h5VideoEpisodeInfo) {
        MTTVideoProxy.a().a(h5VideoEpisodeInfo);
    }

    @Override
    public void userBehaviorStatistics(String str) {
        StatManager.b().c(str);
    }

    @Override
    public void userBehaviorWithParams(String str, Map<String, String> map) {
        VideoStatExtKt.a(str, map);
    }
}