guoguicheng / mxreality.js

mxreality.js是一款支持普通视频,全景VR视频,直播普通视频,直播全景视频,支持hls,flv,webrtc直播协议,支持全景图的h5播放器,支持cubemap视频和图片。
https://www.covideo.cn
MIT License
582 stars 193 forks source link

在VR直播时,vr.destory()销毁后,浏览器还在一直请求直播流数据,试了mxreality.js官网也存在同样问题 #64

Open StrongFu opened 4 years ago

StrongFu commented 4 years ago

经过尝试分析测试后,以下方法可以解决该问题,希望作者大神可以分析一下,看看是不是可以这样加,方便的话也可以整合到这个js里,谢谢! if (this.vr != null) { this.vr.video.pause() this.vr.hlsPlayer.destroy() this.vr.destory() this.vr = null }

主要是增加这一行 this.vr.hlsPlayer.destroy()

guoguicheng commented 4 years ago

已修复