flvPlayer.unload
时间: 2024-04-25 11:25:19 浏览: 281
根据引用\[1\]中的反馈信息,调用EasyPlayer播放器时切换视频路径会报错"FlvPlayer.load() has been called, please call unload() first!"。根据引用\[2\]中的代码,可以看出在flv直播中,如果出现网络错误,会调用this.destoryVideo()来销毁视频。而根据引用\[3\]中的目录,可以找到一些解决方法来处理一些报错情况,比如"Failed to read the 'buffered' property from 'SourceBuffer'"、"Error while initialize transmuxing worker, fallback to inline transmuxing"、"The play() request was interrupted by a call to pause()"、"The play() request was interrupted by a new load request"等。所以,如果想要解决"FlvPlayer.load() has been called, please call unload() first!"的报错,可以尝试调用flvPlayer.unload()来先卸载之前加载的视频,然后再加载新的视频路径。
#### 引用[.reference_title]
- *1* [调用EasyPlayer播放器报错FlvPlayer.load() has been called,pleasse call unload() first!](https://blog.csdn.net/TsingSee/article/details/118180274)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [flv播放问题总结](https://blog.csdn.net/qq_45083936/article/details/127618819)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [使用flv.js的踩坑记录及解决方法](https://blog.csdn.net/Una_lover/article/details/127609127)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文