修改视频播放显示

master
于肖磊 2026-02-13 17:45:59 +08:00
parent 3a69d1816e
commit b59620cc92
1 changed files with 3 additions and 3 deletions

View File

@ -536,7 +536,7 @@
setTimeout(() => {
// //
this.update_share_info(this.display_video_list[0]);
this.display_video_list.forEach((item, index) => {
this.create_video_contexts[index] = uni.createVideoContext(`video_${index}`, this);
//#ifdef H5
@ -547,12 +547,12 @@
setTimeout(() => {
//#ifdef H5
if (this.video_contexts[0]) { // 0
this.video_play_event(this.video_contexts[0], true);
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);
this.video_play_event(this.create_video_contexts[this.current_index], true);
}
//#endif
}, 200);