From c82f6dc40e2f2681430af75f43b573bd6be51d03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?LAPTOP-S9HJSOEB=5C=E6=98=8A=E5=A4=A9?= Date: Mon, 29 Jul 2024 14:30:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E4=B8=80=E4=B8=AA=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E8=AF=BB=E5=8F=96=E4=B8=8B=E4=B8=80=E7=A7=92=E8=A7=86=E9=A2=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/videoPlayback/index.vue | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/views/videoPlayback/index.vue b/src/views/videoPlayback/index.vue index e6ffadf..77618f2 100644 --- a/src/views/videoPlayback/index.vue +++ b/src/views/videoPlayback/index.vue @@ -432,22 +432,7 @@ export default { video.pause(); }, playNextVideo() { - let nextKey = this.URLStartTime; - const keys = Object.keys(this.urls); - // 找到当前键的索引 - const currentIndex = keys.indexOf(this.URLStartTime.toString()); - console.log(keys); - if (currentIndex !== -1 && currentIndex < keys.length - 1) { - nextKey = Number(keys[currentIndex + 1]); - const video = this.$refs.videoPlayer; - this.URLStartTime = nextKey; - - this.currentVideoUrl = this.urls[nextKey]; - video.load(); // 重新加载视频资源 - this.currentTime = this.URLStartTime; - video.currentTime = 0; - video.play(); - } + this.videoControl(this.currentTime+1) }, handleCheck(selectedKeys, e) { if (e.selectedNodes[0].data.props.type == 1) {