From 3c7ca9e21dce1a18a14dd90caf047e6d56c6e00e Mon Sep 17 00:00:00 2001 From: linju Date: Tue, 12 Sep 2023 10:50:09 +0800 Subject: [PATCH] Update swiper-vertical-video.uvue --- .../swiper-vertical-video.uvue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pages/template/swiper-vertical-video/swiper-vertical-video.uvue b/pages/template/swiper-vertical-video/swiper-vertical-video.uvue index 37ecde76..d515af48 100644 --- a/pages/template/swiper-vertical-video/swiper-vertical-video.uvue +++ b/pages/template/swiper-vertical-video/swiper-vertical-video.uvue @@ -4,8 +4,12 @@ - - + + @@ -121,12 +125,8 @@ }, doStop(index : number) { console.log("doStop video-" + index); - - // this.getVideoContext(index).stop() - - // TODO 临时方案: 暂不支持stop(),先调用暂停并将播放时间归零 - this.getVideoContext(index).pause() - this.getVideoContext(index).seek(0) + this.getVideoContext(index).stop(); + // TODO 临时方案:解决.stop()时触发了doPause的问题 setTimeout(()=>{ this.state[index] = 'unPlay' },1000) -- GitLab