فهرست منبع

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;
+      }
     }
   }
 }