Browse Source

change:
1. 播放器调试

kindring 1 year ago
parent
commit
4d1e0faba8
1 changed files with 8 additions and 0 deletions
  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;
+      }
     }
   }
 }