Просмотр исходного кода

当前视频播放完成后,暂不自动播放下个视频

reghao 2 лет назад
Родитель
Сommit
fc7163f434
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      src/components/VideoPlayer.vue

+ 3 - 2
src/components/VideoPlayer.vue

@@ -117,12 +117,13 @@ export default {
       player.on('ended', () => {
         // SocketInstance.send({ videoId: videoId, currentTime: player.video.currentTime })
         const path = this.$route.path
-        const nextPath = '/video/gz5RYkw1zn'
+        /*const nextPath = '/video/gz5RYkw1zn'
         if (path !== nextPath) {
           this.$router.push(nextPath)
         } else {
           console.log('视频播放完成')
-        }
+        }*/
+        console.log('视频播放完成')
       })
 
       player.on('volumechange', () => {