Emit changes on seek

This commit is contained in:
Sam 2018-05-26 21:54:29 +10:00
parent f2f0c5c281
commit 9544ed1c86
1 changed files with 14 additions and 1 deletions

View File

@ -391,9 +391,22 @@ export default {
onPlayerWaiting (player) {
},
onPlayerSeeking (player) {
console.log('seeking', player)
this.$emit('timelineUpdate', {
time: this.player.currentTime() * 1000,
status: this.isPlaying,
bufferedTill: this.bufferedTill,
duration: this.duration
})
},
onPlayerSeeked (player) {
console.log(player)
console.log('Seeked', player)
this.$emit('timelineUpdate', {
time: this.player.currentTime() * 1000,
status: this.isPlaying,
bufferedTill: this.bufferedTill,
duration: this.duration
})
},
playerStateChanged (playerCurrentState) {
// console.log("Setting volume to " + this.player.volume() || 0)