清理定时任务
parent
b9ddb67412
commit
3a69d1816e
|
|
@ -351,6 +351,13 @@
|
|||
this.init();
|
||||
},
|
||||
onHide() {
|
||||
// 清理定时器
|
||||
if (this.video_switch_debounce_timer) {
|
||||
clearTimeout(this.video_switch_debounce_timer);
|
||||
}
|
||||
if (this.video_cleanup_timer) {
|
||||
clearTimeout(this.video_cleanup_timer);
|
||||
}
|
||||
// 清理所有视频资源
|
||||
this.cleanup_all_videos();
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue