我在弹出窗口或某些窗口中通过VideoJS播放视频流。视频播放的非常好。但是在播放时,如果我关闭模式或窗口,则会在控制台上收到此错误。
video-js.js:2568 Uncaught TypeError: Cannot read property 'nodeName' of null
at validateTarget (video-js.js:2568)
at normalizeListenArgs (video-js.js:2647)
at Html5.one (video-js.js:2787)
at Player.userActive (video-js.js:27096)
at Player.<anonymous> (video-js.js:27206)
at video-js.js:4640
得到解决方案的人请删除此。
This error is related to dispose() function in videojs,
because you are not specifying element/playerid when disposing videojs player
for ex : videoJSPlayer = element
if (videojs.getPlayer("videoJSPlayer")) {
videojs("videoJSPlayer").dispose();
}
Hope this will solve your issue!
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句