|
|
@@ -111,6 +111,7 @@ export default {
|
|
|
permissionDialog: false,
|
|
|
authCodeDialog: false,
|
|
|
authCode: null,
|
|
|
+ autoPlayList: false,
|
|
|
showMessage: false,
|
|
|
message: ''
|
|
|
}
|
|
|
@@ -203,10 +204,13 @@ export default {
|
|
|
SocketInstance.send({ videoId: videoId, currentTime: player.video.currentTime })
|
|
|
})
|
|
|
|
|
|
- player.on('ended', function() {
|
|
|
+ player.on('ended', () => {
|
|
|
SocketInstance.send({ videoId: videoId, currentTime: player.video.currentTime })
|
|
|
// TODO 当前视频播放完成后判断是否继续播放相关推荐中的视频
|
|
|
console.log('视频播放完成')
|
|
|
+ if (this.autoPlayList) {
|
|
|
+ this.$router.push('/video/oaywkjbLbW')
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
initFlvPlayer(videoId, coverUrl, videoUrl) {
|