Selaa lähdekoodia

更新媒体播放进度提交的数据格式

reghao 2 vuotta sitten
vanhempi
commit
6c936a8a1f
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      src/components/VideoPlayer.vue

+ 2 - 0
src/components/VideoPlayer.vue

@@ -121,6 +121,7 @@ export default {
           const jsonData = {}
           jsonData.videoId = videoId
           jsonData.currentTime = player.video.currentTime
+          jsonData.ended = true
           SocketInstance.send(jsonData)
         }
       })
@@ -130,6 +131,7 @@ export default {
           const jsonData = {}
           jsonData.videoId = videoId
           jsonData.currentTime = player.video.currentTime
+          jsonData.ended = true
           SocketInstance.send(jsonData)
         }
       })