|
@@ -30,12 +30,12 @@
|
|
|
>
|
|
|
<div ref="signal">
|
|
|
<div class="closeBtn" @click.stop="closeSignal(itemV)">×</div>
|
|
|
- <video-player
|
|
|
+ <!--<video-player
|
|
|
ref="videoPlayer"
|
|
|
:options="playerOptions"
|
|
|
:playsinline="true"
|
|
|
>
|
|
|
- </video-player>
|
|
|
+ </video-player>-->
|
|
|
</div>
|
|
|
</VueDragResize>
|
|
|
|
|
@@ -64,7 +64,7 @@
|
|
|
divArr:[],// 默认大屏中盒子的数组
|
|
|
streamWindows:[], // 传递出去的信号源位置信息
|
|
|
bigScreenJson:[],
|
|
|
- playerOptions: {
|
|
|
+ playerOptions: { // rtmp视频流配置
|
|
|
sources: [],
|
|
|
techOrder: ['flash'],
|
|
|
autoplay: true,
|
|
@@ -116,7 +116,7 @@
|
|
|
width:arr[index].width,
|
|
|
height:arr[index].height,
|
|
|
id:0,
|
|
|
- sourceId:arr[index] ? arr[index].sourceId : '',
|
|
|
+ sourceId:arr[index].sourceId,
|
|
|
widthScale:arr[index].width/(this.currentBigshow[0].Width*this.$store.state.bigScale),
|
|
|
heightScale:arr[index].height/(this.currentBigshow[0].Height*this.$store.state.bigScale),
|
|
|
orginRect:{}
|
|
@@ -145,14 +145,14 @@
|
|
|
const arr = this.$data.streamWindows
|
|
|
// 找出当前改动的信号源
|
|
|
const currentItem = arr.filter(item => item.sourceId === itemV.sourceId)
|
|
|
- /*currentItem[0].widthScale = obj.width/currentItem[0].width
|
|
|
- currentItem[0].heightScale = obj.height/currentItem[0].height*/
|
|
|
currentItem[0].width = obj.width
|
|
|
currentItem[0].height = obj.height
|
|
|
+ currentItem[0].widthScale = obj.width/(this.currentBigshow[0].Width*this.$store.state.bigScale)
|
|
|
+ currentItem[0].heightScale = obj.height/(this.currentBigshow[0].Height*this.$store.state.bigScale)
|
|
|
const otherItems = arr.filter(item => item.sourceId !== itemV.sourceId)
|
|
|
const newStreamWindows = [...currentItem,...otherItems]
|
|
|
this.streamWindows = newStreamWindows
|
|
|
- this.reqRefreshBigScreen(newStreamWindows)
|
|
|
+ this.reqRefreshBigScreen(newStreamWindows,true)
|
|
|
},
|
|
|
|
|
|
// 关闭信号源
|
|
@@ -174,8 +174,10 @@
|
|
|
if(arr.length>0){
|
|
|
let index = arr.length-1
|
|
|
arr[index].splitScreenStatus = this.$store.state.splitScreenStatus+1
|
|
|
- arr[index].width = this.currentBigshow[0].Width*this.$store.state.bigScale/arr[index].splitScreenStatus,
|
|
|
- arr[index].height = this.currentBigshow[0].Height*this.$store.state.bigScale/arr[index].splitScreenStatus,
|
|
|
+ arr[index].width = this.currentBigshow[0].Width*this.$store.state.bigScale/arr[index].splitScreenStatus
|
|
|
+ arr[index].height = this.currentBigshow[0].Height*this.$store.state.bigScale/arr[index].splitScreenStatus
|
|
|
+ arr[index].widthScale = arr[index].width/(this.currentBigshow[0].Width*this.$store.state.bigScale)
|
|
|
+ arr[index].heightScale = arr[index].height/(this.currentBigshow[0].Height*this.$store.state.bigScale)
|
|
|
this.$store.dispatch('updateSignalPreList',arr)
|
|
|
return
|
|
|
}
|
|
@@ -220,8 +222,11 @@
|
|
|
this.$data.divArr.push(i+1)
|
|
|
}
|
|
|
|
|
|
- const arr = this.$store.state.signalPreList
|
|
|
- this.reqRefreshBigScreen(arr)
|
|
|
+ /*const arr = this.$store.state.signalPreList
|
|
|
+ this.reqRefreshBigScreen(arr)*/
|
|
|
+ // this.$store.dispatch('updateSignalPreList',this.$data.streamWindows)
|
|
|
+ // console.log(this.$data.streamWindows)
|
|
|
+ this.reqRefreshBigScreen(this.$data.streamWindows)
|
|
|
}
|
|
|
}
|
|
|
}
|