y595705120 2 년 전
부모
커밋
58d61d8276
2개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 3
      src/containers/center/play/components/media.vue
  2. BIN
      static/favicon.ico

+ 5 - 3
src/containers/center/play/components/media.vue

@@ -124,7 +124,7 @@
     },
     created() {
       this.startTick()
-      // this.startMonitor()
+      this.startMonitor()
     },
     methods: {
       startTick(){
@@ -211,9 +211,11 @@
         document.addEventListener("visibilitychange", function() {
           // || document.hidden
           if( document.visibilityState == "hidden"){
-            that.doPause( )
+            // that.doPause( )
+            that.reportErr("play", 'hidden');
           }else{
-            that.doPlay()
+            that.reportErr("play", 'show');
+            // that.doPlay()
           }
         });
       },

BIN
static/favicon.ico