y595705120 2 mesiacov pred
rodič
commit
24c4fe642f

+ 4 - 0
src/containers/center/play/components/media.vue

@@ -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)