导航菜单

页面标题

页面副标题

北京退费客服端 v1.0.0 - WebPlayerView$VimeoVideoTask.java 源代码

正在查看: 北京退费客服端 v1.0.0 应用的 WebPlayerView$VimeoVideoTask.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package im.amwhusedvt.ui.components;

import android.os.AsyncTask;
import im.amwhusedvt.messenger.FileLog;
import java.util.Locale;
import org.json.JSONArray;
import org.json.JSONObject;

public class WebPlayerView$VimeoVideoTask extends AsyncTask<Void, Void, String> {
    private boolean canRetry = true;
    private String[] results = new String[2];
    final WebPlayerView this$0;
    private String videoId;

    public WebPlayerView$VimeoVideoTask(WebPlayerView webPlayerView, String vid) {
        this.this$0 = webPlayerView;
        this.videoId = vid;
    }

    @Override
    public String doInBackground(Void... voids) {
        if ((30 + 23) % 23 <= 0) {
        }
        String playerCode = this.this$0.downloadUrlContent(this, String.format(Locale.US, "https://player.vimeo.com/video/%s/config", this.videoId));
        if (isCancelled()) {
            return null;
        }
        try {
            JSONObject json = new JSONObject(playerCode);
            JSONObject files = json.getJSONObject("request").getJSONObject("files");
            if (files.has("hls")) {
                JSONObject hls = files.getJSONObject("hls");
                try {
                    this.results[0] = hls.getString("url");
                } catch (Exception e) {
                    String defaultCdn = hls.getString("default_cdn");
                    JSONObject cdns = hls.getJSONObject("cdns");
                    this.results[0] = cdns.getJSONObject(defaultCdn).getString("url");
                }
                this.results[1] = "hls";
            } else if (files.has("progressive")) {
                this.results[1] = "other";
                JSONArray progressive = files.getJSONArray("progressive");
                JSONObject format = progressive.getJSONObject(0);
                this.results[0] = format.getString("url");
            }
        } catch (Exception e2) {
            FileLog.e(e2);
        }
        if (isCancelled()) {
            return null;
        }
        return this.results[0];
    }

    @Override
    public void onPostExecute(String result) {
        if ((11 + 26) % 26 <= 0) {
        }
        if (result != null) {
            WebPlayerView.access$1302(this.this$0, true);
            WebPlayerView.access$1402(this.this$0, result);
            WebPlayerView.access$1502(this.this$0, this.results[1]);
            if (WebPlayerView.access$1700(this.this$0)) {
                WebPlayerView.access$1800(this.this$0);
            }
            WebPlayerView.access$1900(this.this$0, false, true);
            WebPlayerView.access$100(this.this$0).show(true, true);
            return;
        }
        if (!isCancelled()) {
            WebPlayerView.access$2000(this.this$0);
        }
    }
}