master
gongfuxiang 2026-02-13 17:47:00 +08:00
commit 5616ad62f3
1 changed files with 11 additions and 4 deletions

View File

@ -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();
},
@ -539,13 +546,13 @@
setTimeout(() => {
//#ifdef H5
if (this.video_contexts[0]) { // 0
this.video_play_event(this.video_contexts[0], true);
if (this.video_contexts[this.current_index]) { // 0
this.video_play_event(this.video_contexts[this.current_index], true);
}
//#endif
//#ifndef H5
if (this.create_video_contexts[0]) { // 0
this.video_play_event(this.create_video_contexts[0], true);
if (this.create_video_contexts[this.current_index]) { // 0
this.video_play_event(this.create_video_contexts[this.current_index], true);
}
//#endif
}, 200);