dedsudiyu %!s(int64=2) %!d(string=hai) anos
pai
achega
4e9715b62d
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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;
           }
         }