Procházet zdrojové kódy

电视墙自动播放

wang_xy před 2 roky
rodič
revize
bd3b7b0f87
1 změnil soubory, kde provedl 7 přidání a 3 odebrání
  1. 7 3
      src/components/TVWall.vue

+ 7 - 3
src/components/TVWall.vue

@@ -476,9 +476,13 @@ export default {
       ]
       this.setPos()
       this.customizeTree(tvListJson);
-      setTimeout(() => {
-        _this.ws.createCtrl(params);
-      }, 5000)
+      let length = tvListJson[0].treeLabels.length > 4 ? 5 : tvListJson[0].treeLabels.length;
+      const bfArray = [];
+      for (let i = 1; i < length; i++) {
+        bfArray.push({"channelId": tvListJson[0].treeLabels[i].labelCode})
+      }
+      _this.ws.createCtrl(params);
+      _this.playRealMonitorVideo(array)
 
     },
     setPos() {