dedsudiyu 2 年之前
父節點
當前提交
4e9715b62d
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/views/newEvacuationBigData.vue

+ 5 - 1
src/views/newEvacuationBigData.vue

@@ -1457,6 +1457,7 @@
           if(self.subjectVideoList[0]){
             for(let i=0;i<self.subjectVideoList.length;i++){
               if(self.subjectVideoList[i].flvPlayer){
+                console.log('关闭实验室视频流');
                 self.subjectVideoList[i].flvPlayer.pause();
                 self.subjectVideoList[i].flvPlayer.unload();
                 self.subjectVideoList[i].flvPlayer.detachMediaElement();
@@ -1471,6 +1472,7 @@
           if(self.floorVideoList[0]){
             for(let i=0;i<self.floorVideoList.length;i++){
               if(self.floorVideoList[i].flvPlayer){
+                console.log('关闭楼层视频流');
                 self.floorVideoList[i].flvPlayer.pause();
                 self.floorVideoList[i].flvPlayer.unload();
                 self.floorVideoList[i].flvPlayer.detachMediaElement();
@@ -2216,6 +2218,8 @@
     beforeDestroy() {
       //清除定时器
       let self = this;
+      self.videoOff('floor');
+      self.videoOff('subject')
       // self.offAllMQTT();
       self.offFloorMQTT();
       self.offSubMQTT();
@@ -3084,7 +3088,7 @@
           }
           .video-mx-big-box{
             width:368px;
-            height:170px;
+            height:210px;
             margin-top:14px;
           }
         }