EasyDarwin / EasyPlayer.js

EasyPlayer.js H5播放器,是一款免费的能够同时支持HTTP、RTMP、HTTP-FLV、HLS(m3u8)直播与点播等多种协议,支持H.264、H.265、AAC等多种音视频编码格式,支持mse、asm、wasm等多种解码方式,支持Windows、Linux、Android、iOS全平台终端的H5播放器。EasyPlayer.js H5 Player support HTTP/RTMP/HTTP-FLV/HLS(m3u8) live streaming & vod streaming,support H.264/H.265/AAC video & audio codec,support mse/asm/wasm decode mode,support Windows/Linux/Android/iOS platform,EasyPlayer.js uses leading-edge technology.
http://www.tsingsee.com/
1.66k stars 313 forks source link

Uncaught TypeError: Cannot read property 'flvPlayer' of null at EasyWasmPlayer.js:21 #52

Open zypy333 opened 3 years ago

zypy333 commented 3 years ago

this.timeKbps = setInterval((function() { if (g.playerInstance.flvPlayer && g.playerInstance.flvPlayer._transmuxer && g.playerInstance.flvPlayer._transmuxer._controller && g.playerInstance.flvPlayer._transmuxer._controller._ioctl) { var A = parseInt(g.playerInstance.flvPlayer._transmuxer._controller._ioctl.currentSpeed) , M = parseInt(g.playerInstance.flvPlayer._transmuxer._controller._ioctl.averageKBps); g.domKbps.innerText = 8 M >= 1024 ? (8 M / 1024).toFixed(2) + "Mb/s" : 8 M + "Kb/s", g.cfKbs({ currentKbs: 8 A, averageKbs: 8 * M, currentKbps: A, averageKbps: M }) } }

图上第2行处报错,请问如何解决