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) {