|
@@ -64,7 +64,7 @@
|
64
|
64
|
|
65
|
65
|
|
66
|
66
|
|
67
|
|
- <el-carousel class="monitor" :interval="10000" @change="monitorchange">
|
|
67
|
+ <el-carousel class="monitor" :interval="15000" @change="monitorchange">
|
68
|
68
|
<el-carousel-item v-for="(item, index2) in carouselData" :key="index2">
|
69
|
69
|
<p style="margin-left: 12px; margin-bottom: 3px; font-size: 14px;">{{ item.activeMonitor.title }}
|
70
|
70
|
</p>
|
|
@@ -207,21 +207,15 @@ export default ({
|
207
|
207
|
const lookVideo = function (item) {
|
208
|
208
|
videoDialog.value = true;
|
209
|
209
|
dialogTitle.value = item.title
|
210
|
|
- let copysrc = JSON.parse(JSON.stringify(item))
|
211
|
|
- console.log('sadi2', copysrc);
|
212
|
|
- // videoData.src = item.scr
|
213
|
|
- videoData.src = copysrc.src
|
214
|
|
- console.log('kankna222', videoData.src);
|
|
210
|
+
|
|
211
|
+ getVideoUrl({ "rtsp": item.src }).then((res) => {
|
|
212
|
+ console.log("视频处理", res);
|
|
213
|
+ console.log("视频处理2", res.data.httpFlv);
|
215
|
214
|
|
216
|
|
-
|
217
|
|
-
|
218
|
|
- // getVideoUrl({ "rtsp": item.src }).then((res) => {
|
219
|
|
- // console.log("视频处理", res);
|
220
|
|
- // console.log("视频处理2", res.data.httpFlv);
|
221
|
|
-
|
222
|
|
- // videoData.src = res.data.httpFlv
|
223
|
|
- // })
|
224
|
|
- // videoData.src = src
|
|
215
|
+ videoData.src = res.data.httpFlv
|
|
216
|
+ })
|
|
217
|
+ videoData.src = src
|
|
218
|
+ console.log('sadknasdo',videoData.src);
|
225
|
219
|
|
226
|
220
|
}
|
227
|
221
|
// 播放视频
|
|
@@ -265,33 +259,33 @@ export default ({
|
265
|
259
|
|
266
|
260
|
|
267
|
261
|
|
268
|
|
- monitor.map((res) => {
|
269
|
|
- console.log('sadhi2', res.activeMonitor);
|
270
|
|
- if(res.activeMonitor.array){
|
271
|
|
- res.activeMonitor.array.map(array => {
|
272
|
|
- //视频转码
|
273
|
|
- getvideo({
|
274
|
|
- "rtsp": array.src,
|
275
|
|
- }).then((res) => {
|
276
|
|
- // array.src = 'http://kbs-dokdo.gscdn.com/dokdo_300/_definst_/dokdo_300.stream/playlist.m3u8'
|
277
|
|
- array.src=res.data.httpFlv
|
278
|
|
- })
|
279
|
|
- })
|
280
|
|
- }
|
281
|
|
- if ( res.activeMonitor.array1) {
|
282
|
|
- res.activeMonitor.array1.map(array1 => {
|
283
|
|
- //视频转码
|
284
|
|
- getvideo({
|
285
|
|
- "rtsp": array1.src,
|
286
|
|
- }).then((res) => {
|
287
|
|
- // array1.src = 'http://kbs-dokdo.gscdn.com/dokdo_300/_definst_/dokdo_300.stream/playlist.m3u8'
|
288
|
|
- array1.src=res.data.httpFlv
|
289
|
|
- })
|
290
|
|
- })
|
291
|
|
- }
|
|
262
|
+ // monitor.map((res) => {
|
|
263
|
+ // console.log('sadhi2', res.activeMonitor);
|
|
264
|
+ // if(res.activeMonitor.array){
|
|
265
|
+ // res.activeMonitor.array.map(array => {
|
|
266
|
+ // //视频转码
|
|
267
|
+ // getvideo({
|
|
268
|
+ // "rtsp": array.src,
|
|
269
|
+ // }).then((res) => {
|
|
270
|
+ // // array.src = 'http://kbs-dokdo.gscdn.com/dokdo_300/_definst_/dokdo_300.stream/playlist.m3u8'
|
|
271
|
+ // array.src=res.data.httpFlv
|
|
272
|
+ // })
|
|
273
|
+ // })
|
|
274
|
+ // }
|
|
275
|
+ // if ( res.activeMonitor.array1) {
|
|
276
|
+ // res.activeMonitor.array1.map(array1 => {
|
|
277
|
+ // //视频转码
|
|
278
|
+ // getvideo({
|
|
279
|
+ // "rtsp": array1.src,
|
|
280
|
+ // }).then((res) => {
|
|
281
|
+ // // array1.src = 'http://kbs-dokdo.gscdn.com/dokdo_300/_definst_/dokdo_300.stream/playlist.m3u8'
|
|
282
|
+ // array1.src=res.data.httpFlv
|
|
283
|
+ // })
|
|
284
|
+ // })
|
|
285
|
+ // }
|
292
|
286
|
|
293
|
287
|
|
294
|
|
- })
|
|
288
|
+ // })
|
295
|
289
|
// 互动教室
|
296
|
290
|
carouselData.value = monitor;
|
297
|
291
|
|