|
|
@@ -5,7 +5,8 @@
|
|
|
<div class="sub-video-big-box" v-for="(item,index) in dataList" :key="index">
|
|
|
<div class="sub-video-box">
|
|
|
<p class="sub-name-p">{{item.roomNum?item.subName+'('+item.roomNum+')':item.subName}}</p>
|
|
|
- <H5PlayerVideo class="sub-video-box" :videoProps="item.videoData"></H5PlayerVideo>
|
|
|
+ <mpegts-video :videoProps="item.videoData" ref="mpegtsRef" ></mpegts-video>
|
|
|
+ <!--<H5PlayerVideo class="sub-video-box" :videoProps="item.videoData"></H5PlayerVideo>-->
|
|
|
</div>
|
|
|
<div class="sensor-max-box">
|
|
|
<div class="sensor-box" v-for="(minItem,minIndex) in item.sensorList" :key="minIndex">
|
|
|
@@ -21,12 +22,13 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <fullH5PlayerVideo v-if="fullVideoType" :fullVideoProps="fullVideoProps"></fullH5PlayerVideo>
|
|
|
+ <!--<fullH5PlayerVideo v-if="fullVideoType" :fullVideoProps="fullVideoProps"></fullH5PlayerVideo>-->
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
import H5PlayerVideo from '@/components/H5PlayerVideo/H5PlayerVideo.vue'
|
|
|
import fullH5PlayerVideo from '@/components/fullH5PlayerVideo/fullH5PlayerVideo.vue'
|
|
|
+ import mpegtsVideo from '@/components/mpegtsVideo/mpegtsVideo.vue'
|
|
|
import {
|
|
|
laboratorySubRelInfoSelectInfoAndSensor,
|
|
|
iotCameraFindByCondition
|
|
|
@@ -36,7 +38,8 @@
|
|
|
name: 'newSubVideoComponent',
|
|
|
components: {
|
|
|
H5PlayerVideo,
|
|
|
- fullH5PlayerVideo
|
|
|
+ fullH5PlayerVideo,
|
|
|
+ mpegtsVideo,
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -63,6 +66,19 @@
|
|
|
this.timerPlay()
|
|
|
},
|
|
|
methods: {
|
|
|
+ //父类方法-用于全屏窗口切换
|
|
|
+ fullScreenWindowSwitch(data){
|
|
|
+ let self = this;
|
|
|
+ for(let i=0;i<self.$refs.mpegtsRef.length;i++){
|
|
|
+ if(data.cameraIndexCode != self.$refs.mpegtsRef[i].videoData.cameraIndexCode){
|
|
|
+ if(data.type){
|
|
|
+ self.$refs.mpegtsRef[i].stopVideo();
|
|
|
+ }else{
|
|
|
+ self.$refs.mpegtsRef[i].playVideo();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
//初始化
|
|
|
initialize() {
|
|
|
laboratorySubRelInfoSelectInfoAndSensor(this.queryParams).then((res) => {
|
|
|
@@ -256,7 +272,7 @@
|
|
|
.img-box {
|
|
|
width: 99px;
|
|
|
height: 85px;
|
|
|
- margin: 10px 40px 0 19px;
|
|
|
+ margin: 10px 20px 0 19px;
|
|
|
background: url("../assets/ZDimages/emergencyManagement/icon_yjsj_zc.png") no-repeat;
|
|
|
background-size: 100%;
|
|
|
.svg-img {
|