youtube仅在通过代理时抛出错误“发生错误。请稍后重试”

时间:2019-09-19 11:22:01

标签: android proxy youtube android-youtube-api youtube-iframe-api

Youtube嵌入在使用webview服务的android应用程序中,当系统提示使用代理服务时,视频会被加载。无论使用代理还是不使用代理,视频均会加载,但仅在不使用代理时播放。

我已经检查了两者的tcp转储,即使用代理和不使用代理时,并且我了解在两种情况下都可以提供应用程序数据。我还尝试获取youtube的调试日志,并且跟随

{
  "ns": "yt",
  "el": "embedded",
  "cpn": "G7olUuLKEv2WiDuc",
  "docid": "tgbNymZ7vqY",
  "ver": 2,
  "cmt": "0",
  "ei": "Zl-DXZLOHNi-VJvaheAK",
  "fs": "0",
  "rt": "703.547",
  "euri": "https://api.xyz.com/",
  "lact": 3,
  "cl": "269594195",
  "mos": 0,
  "state": "80",
  "volume": 100,
  "c": "WEB_EMBEDDED_PLAYER",
  "cver": "20190918",
  "cplayer": "UNIPLAYER",
  "cos": "Android",
  "cosver": "9",
  "hl": "en_US",
  "cr": "IE",
  "len": "287",
  "fexp": "23735348,23744176,23745073,23788875,23793834,23804281,23812325,23817438,23817472,23820289,23828081,23828243,23832543,23834798,23835015,23836965,23837742,23837772,23837993,23838477,23838823,23838823,23839361,23840217,23840699,23841766,23842662,23842986,23843291,23843534,23844083,24630231,24660071,9449243",
  "size": "1000:964:2.75",
  "inview": "1",
  "conn": "7",
  "vct": "0.000",
  "vd": "NaN",
  "vpl": "",
  "vbu": "",
  "vpa": "1",
  "vsk": "0",
  "ven": "0",
  "vpr": "1",
  "vrs": "0",
  "vns": "0",
  "vec": "null",
  "vvol": "1",
  "debug_error": {
    "errorCode": "auth",
    "errorMessage": "An error occurred. Please try again later.",
    "No": "GENERIC_WITHOUT_LINK",
    "Hg": "",
    "Dy": "ec.2;ed.;es.null"
  },
  "relative_loudness": "NaN",
  "user_qual": "auto",
  "debug_videoId": "tgbNymZ7vqY",
  "0sz": false,
  "op": "",
  "yof": false,
  "dis": "",
  "gpu": "Adreno_(TM)_509",
  "cgr": true,
  "debug_playbackQuality": "unknown",
  "debug_date": "Thu Sep MM YYYY 16:42:39 GMT+TTTT"
}

由于根据tcpdump分析加载了内容,因此视频应该可以正常播放,但是auth的错误代码使我感到困惑。

0 个答案:

没有答案