kindring 1 год назад
Родитель
Сommit
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;
+      }
     }
   }
 }