|
@@ -59,6 +59,7 @@
|
|
created() {
|
|
created() {
|
|
this.timer = setInterval(this.tick, 5 * 1000);
|
|
this.timer = setInterval(this.tick, 5 * 1000);
|
|
this.startMonitor();
|
|
this.startMonitor();
|
|
|
|
+ this.updateBlurtime()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
playerReadied(player) {
|
|
playerReadied(player) {
|
|
@@ -96,11 +97,14 @@
|
|
},
|
|
},
|
|
onPlayerPause(event) {
|
|
onPlayerPause(event) {
|
|
this.onPlay = false
|
|
this.onPlay = false
|
|
|
|
+ this.updateBlurtime()
|
|
},
|
|
},
|
|
onPlayerEnded( event ){
|
|
onPlayerEnded( event ){
|
|
|
|
+ this.updateBlurtime()
|
|
this.tick( true )
|
|
this.tick( true )
|
|
},
|
|
},
|
|
doPause( ){
|
|
doPause( ){
|
|
|
|
+ this.updateBlurtime()
|
|
let myPlayer = this.$refs.videoPlayer.player;
|
|
let myPlayer = this.$refs.videoPlayer.player;
|
|
myPlayer && myPlayer.pause()
|
|
myPlayer && myPlayer.pause()
|
|
console.log("doPause", myPlayer)
|
|
console.log("doPause", myPlayer)
|