sonysuqin / WasmVideoPlayer

Play file/stream with wasm & webgl & web audio api, using ffmpeg for multi codec support, especially for h265,support http, websocket, http-flv stream.
GNU General Public License v3.0
1.3k stars 375 forks source link

关于播放带有鉴权的http-flv #72

Closed yinjiaoyuan closed 4 years ago

yinjiaoyuan commented 4 years ago

请问如何播放云厂商带有鉴权数据的http-flv链接,例如https://xxx.xxx.com/xxx/xxxx.flv?auth_key=1603455140-0-0-0500dd3ed164c13d8c1c59e87f1f1234 这种,我在demo网页https://roblin.cn/wasm/和我自己编译的WasmVideoPlayer都播放不了,提示错误: common.js:62 [2020-10-23 19:55:53:971][Player][IF] Play https://live.xxx.com/live1/xxx.flv?auth_key=1603455940-0-0-056afe0…. common.js:62 [2020-10-23 19:55:53:990][Player][IF] Got file size rsp:200 size:-1 byte. common.js:62 [2020-10-23 19:55:53:990][Player][IF] Initializing decoder. libffmpeg.js:1 [2020-10-23 19:55:53.991][Core][DT] Decoder initialized 0. common.js:62 [2020-10-23 19:55:53:992][Decoder][IF] initDecoder return 0. common.js:62 [2020-10-23 19:55:53:996][Player][IF] Init decoder response 0. player.js:1122 GET https://live.xxx.com/live1/xxx.flv?auth_key=1603455940-0-0-056afe0… net::ERR_SSL_VERSION_OR_CIPHER_MISMATCH common.js:62 [2020-10-23 19:56:0:87][Player][IF] Stop in stream pause. common.js:62 [2020-10-23 19:56:0:88][Player][IF] Stop. common.js:62 [2020-10-23 19:56:0:88][Player][IF] Closing decoder. common.js:62 [2020-10-23 19:56:0:89][Player][IF] Uniniting decoder. common.js:62 [2020-10-23 19:56:0:89][Decoder][IF] closeDecoder. common.js:62 [2020-10-23 19:56:0:89][Decoder][IF] Close ffmpeg decoder return 0. libffmpeg.js:1 [2020-10-23 19:56:0.90][Core][DT] Decoder uninitialized. common.js:62 [2020-10-23 19:56:0:91][Decoder][IF] Uninit ffmpeg decoder return 0. common.js:62 [2020-10-23 19:57:21:861][Player][IF] Play in stream resume. common.js:62 [2020-10-23 19:57:21:862][Player][IF] Play https://live.xxx.com/live1/xxx.flv?auth_key=1603455940-0-0-056afe0…. common.js:62 [2020-10-23 19:57:21:868][Player][IF] Got file size rsp:200 size:-1 byte. common.js:62 [2020-10-23 19:57:21:868][Player][IF] Initializing decoder. libffmpeg.js:1 [2020-10-23 19:57:21.869][Core][DT] Decoder initialized 0. common.js:62 [2020-10-23 19:57:21:869][Decoder][IF] initDecoder return 0. common.js:62 [2020-10-23 19:57:21:873][Player][IF] Init decoder response 0. player.js:1122 GET https://live.xxx.com/live1/xxx.flv?auth_key=1603455940-0-0-056afe0… net::ERR_SSL_VERSION_OR_CIPHER_MISMATCH  ​

yinjiaoyuan commented 4 years ago

环境: win10 google chrome 版本 84.0.4147.125(正式版本) (64 位)