浏览代码

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