Browse Source

电视墙自动播放

wang_xy 2 years ago
parent
commit
e802f25c9c
1 changed files with 7 additions and 3 deletions
  1. 7 3
      src/components/TVWall.vue

+ 7 - 3
src/components/TVWall.vue

@@ -499,9 +499,13 @@ export default {
       ]
       this.setPos()
       this.customizeTree(tvListJson);
-      setTimeout(function () {
-        _this.ws.createCtrl(params);
-      }, 3000);
+      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(bfArray)
     },
     setPos() {
       let target = document.getElementById(this.domId)