|
@@ -21,7 +21,14 @@
|
|
<div class="contetn_centerbottom">
|
|
<div class="contetn_centerbottom">
|
|
<ItemWrap class="contetn_center-bottom contetn_lr-item" title="视频监控">
|
|
<ItemWrap class="contetn_center-bottom contetn_lr-item" title="视频监控">
|
|
<!-- <CenterBottom /> -->
|
|
<!-- <CenterBottom /> -->
|
|
- <Monitor></Monitor>
|
|
|
|
|
|
+<!-- <Monitor></Monitor>-->
|
|
|
|
+ <!-- <webrtc class="monitor" :streamurl="stream_url"></webrtc> -->
|
|
|
|
+ <!-- <webrtc class="monitor" style="width: 400px;height: 950px;" :streamurl="stream_url"></webrtc> -->
|
|
|
|
+ <div class="monitor-container">
|
|
|
|
+ <div class="monitor" v-for="(stream, index) in stream_url">
|
|
|
|
+ <webrtc :key="stream.id" :streamurl="stream.url" :videoId="'video-' + index"></webrtc>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</ItemWrap>
|
|
</ItemWrap>
|
|
</div>
|
|
</div>
|
|
<div class="contetn_bottom" id="contetn_bottom">
|
|
<div class="contetn_bottom" id="contetn_bottom">
|
|
@@ -154,13 +161,27 @@ import LeftBottom from "./left-bottom.vue";
|
|
import RightTop from "./right-top.vue";
|
|
import RightTop from "./right-top.vue";
|
|
import RightCenter from "./right-center.vue";
|
|
import RightCenter from "./right-center.vue";
|
|
import RightBottom from "./right-bottom.vue";
|
|
import RightBottom from "./right-bottom.vue";
|
|
|
|
+import webrtc from './webrtc.vue';
|
|
import { NIcon } from "naive-ui";
|
|
import { NIcon } from "naive-ui";
|
|
import Iot3d from "./iot3d.vue";
|
|
import Iot3d from "./iot3d.vue";
|
|
import { onBeforeRouteLeave } from 'vue-router';
|
|
import { onBeforeRouteLeave } from 'vue-router';
|
|
import WebH5 from './webH5.vue';
|
|
import WebH5 from './webH5.vue';
|
|
import Monitor from './monitor.vue';
|
|
import Monitor from './monitor.vue';
|
|
|
|
+import { id } from 'element-plus/es/locale';
|
|
const shouldShowComponent = ref(true);
|
|
const shouldShowComponent = ref(true);
|
|
|
|
|
|
|
|
+let stream_url = ref([
|
|
|
|
+ {id:1,url:'rtsp://admin:jxzs12345@192.168.1.3:554/h264/ch1/main/av_stream'},
|
|
|
|
+ {id:2,url:'rtsp://admin:jxzs12345@192.168.1.7:554/h264/ch1/main/av_stream'},
|
|
|
|
+ {id:3,url:'rtsp://admin:jxzs12345@192.168.1.7:554/h264/ch1/main/av_stream'},
|
|
|
|
+ {id:4,url:'rtsp://admin:jxzs12345@192.168.1.7:554/h264/ch1/main/av_stream'},
|
|
|
|
+ {id:5,url:'rtsp://admin:jxzs12345@192.168.1.7:554/h264/ch1/main/av_stream'},
|
|
|
|
+ {id:6,url:'rtsp://admin:jxzs12345@192.168.1.7:554/h264/ch1/main/av_stream'},
|
|
|
|
+ {id:7,url:'rtsp://admin:jxzs12345@192.168.1.7:554/h264/ch1/main/av_stream'},
|
|
|
|
+ {id:8,url:'rtsp://admin:jxzs12345@192.168.1.7:554/h264/ch1/main/av_stream'},
|
|
|
|
+]);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
onBeforeRouteLeave((to, from, next) => {
|
|
onBeforeRouteLeave((to, from, next) => {
|
|
shouldShowComponent.value = false;
|
|
shouldShowComponent.value = false;
|
|
@@ -252,4 +273,15 @@ onBeforeRouteLeave((to, from, next) => {
|
|
.index-box{
|
|
.index-box{
|
|
z-index: 1000000 !important;
|
|
z-index: 1000000 !important;
|
|
}
|
|
}
|
|
|
|
+.monitor{
|
|
|
|
+ margin-left: 10px;
|
|
|
|
+ width: 50% !important;
|
|
|
|
+ height: 100% !important;
|
|
|
|
+ // border: #ffea00 solid 1px;
|
|
|
|
+}
|
|
|
|
+.monitor-container{
|
|
|
|
+ width: 100% !important;
|
|
|
|
+ height: 100% !important;
|
|
|
|
+ display: flex;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|