소스 검색

change:
1. 播放器调试

kindring 1 년 전
부모
커밋
4d1e0faba8
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      web_src/src/components/common/mpegtsVideo.vue

+ 8 - 0
web_src/src/components/common/mpegtsVideo.vue

@@ -102,6 +102,14 @@ export default {
     },
     replay(){
       this.initVideo();
+    },
+    checkBrowser(){
+      // 检查浏览器是否支持
+      if(this.videoPlayer){
+        return this.videoPlayer.isSupported();
+      }else{
+        return null;
+      }
     }
   }
 }