|
@@ -66,8 +66,11 @@
|
66
|
66
|
<div class="interactclass">
|
67
|
67
|
|
68
|
68
|
<div class="room" v-for="(item, index) in item.activeMonitor.array" :key="index">
|
69
|
|
- <span>{{ item.title }}</span>
|
70
|
|
- <img :src="deviceImg + 'rb2.png'" alt="" @click="lookVideo(item)">
|
|
69
|
+ <span style="z-index: 99;">{{ item.title }}</span>
|
|
70
|
+ <!-- <img :src="deviceImg + 'rb2.png'" alt="" @click="lookVideo(item)"> -->
|
|
71
|
+ <div @click="lookVideo(item.src)">
|
|
72
|
+ <videoPlay v-bind="videoData" />
|
|
73
|
+ </div>
|
71
|
74
|
</div>
|
72
|
75
|
</div>
|
73
|
76
|
|
|
@@ -75,7 +78,9 @@
|
75
|
78
|
<div class="interactclass">
|
76
|
79
|
<div class="room" v-for="(item, index) in item.activeMonitor.array1" :key="index">
|
77
|
80
|
<span>{{ item.title }}</span>
|
78
|
|
- <img :src="deviceImg + 'rb2.png'" alt="" @click="lookVideo(item.src)">
|
|
81
|
+ <div @click="lookVideo(item.src)">
|
|
82
|
+ <videoPlay v-bind="videoData" />
|
|
83
|
+ </div>
|
79
|
84
|
</div>
|
80
|
85
|
</div>
|
81
|
86
|
</el-carousel-item>
|
|
@@ -88,6 +93,7 @@
|
88
|
93
|
<!-- 视频播放弹框 -->
|
89
|
94
|
<el-dialog class="videoDialog" v-model="videoDialog" :title="dialogTitle" width="60%" align="center" top="4%">
|
90
|
95
|
<videoPlay v-bind="videoData" />
|
|
96
|
+
|
91
|
97
|
<!-- {{ videoData.src }} -->
|
92
|
98
|
</el-dialog>
|
93
|
99
|
</template>
|
|
@@ -98,7 +104,7 @@ import { ElCarousel, ElCarouselItem } from "element-plus";
|
98
|
104
|
import "vue3-video-play/dist/style.css";
|
99
|
105
|
import { videoPlay } from "vue3-video-play";
|
100
|
106
|
import CircleProgress from './CircleProgress.vue';
|
101
|
|
-import { getDevice, getVideoUrl } from '../request/api';
|
|
107
|
+import { getDevice, getVideoUrl,getvideo } from '../request/api';
|
102
|
108
|
|
103
|
109
|
|
104
|
110
|
export default ({
|
|
@@ -145,6 +151,7 @@ export default ({
|
145
|
151
|
console.log("点击了播放视频", 12312312, "播放路径", item)
|
146
|
152
|
getVideoUrl({ "rtsp": item.src }).then((res) => {
|
147
|
153
|
console.log("视频处理", res);
|
|
154
|
+ console.log("视频处理2", res.data.httpFlv);
|
148
|
155
|
|
149
|
156
|
videoData.src = res.data.httpFlv
|
150
|
157
|
})
|
|
@@ -164,6 +171,15 @@ export default ({
|
164
|
171
|
|
165
|
172
|
//获取页面数据
|
166
|
173
|
const getDeviceData = async () => {
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+ //视频转码
|
|
177
|
+ getvideo({
|
|
178
|
+ "rtsp": "rtsp://admin:admin@10.116.255.67:554",
|
|
179
|
+ }).then((res)=>{
|
|
180
|
+ console.log('sadnuq21',res);
|
|
181
|
+ })
|
|
182
|
+
|
167
|
183
|
let res = await getDevice()
|
168
|
184
|
console.log('s12312123',res);
|
169
|
185
|
if (res.code !== 200) {
|
|
@@ -175,7 +191,10 @@ export default ({
|
175
|
191
|
//截取数组前6项
|
176
|
192
|
interDevice.value = category.slice(0,6);
|
177
|
193
|
// 互动教室
|
178
|
|
- carouselData.value = monitor
|
|
194
|
+ carouselData.value = monitor.slice(0,5)
|
|
195
|
+
|
|
196
|
+ console.log('处理监控视频数据===',monitor).slice(0,1);
|
|
197
|
+
|
179
|
198
|
//物联设备统计
|
180
|
199
|
equipmentTotal.value = status
|
181
|
200
|
|