**
vue中集成flv.js播放直播视频缓存报错问题解决
**
需求:点击切换摄像机,更改摄像机直播flv源对象
BUG1:这种错误提示一般是在flv源发生异常中断的时候产生的
错误描述:Failed to read the ‘buffered’ property from ‘SourceBuffer’: This SourceBuffer has been removed from the parent media source.
解决方法:在对flvplayer对象赋值之前,需要先清空当前flv源对象
if (this.XAflvPlayer) { this.XAflvPlayer.pause(); this.XAflvPlayer.unload(); this.XAflvPlayer.detachMediaElement(); this.XAflvPlayer.destroy(); this.XAflvPlayer = null;}