Commit a356638e by Tianqing Liu

feat: 增加注释

1 parent b723fb5b
...@@ -158,6 +158,7 @@ export default { ...@@ -158,6 +158,7 @@ export default {
if (url) { if (url) {
// 播放地址不同,则先停止再播放。地址相同,相当于暂停后,继续播放 // 播放地址不同,则先停止再播放。地址相同,相当于暂停后,继续播放
if (this.playOriginUrl && this.playOriginUrl !== url) { if (this.playOriginUrl && this.playOriginUrl !== url) {
// 切换视频流地址,先销毁当前实例,再创建新实例,避免内存溢出
this.replay(url); this.replay(url);
} else { } else {
this.delayPlay(url); this.delayPlay(url);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!