|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div class="videoContent" :class="`content${urlArr.length > 1 ? '_most' : ''}`">
|
|
|
+ <div class="videoContent">
|
|
|
<div class="videoList" v-for="(item, index) in urlArr" :key="index">
|
|
|
<my-video-playerVue
|
|
|
:videoData="[
|
|
@@ -35,23 +35,22 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- urlArr: [
|
|
|
- // 'http://cmgw-vpc.lechange.com:8888/LCO/7D100C2PAZ6C590/0/0/20220112T081910/051edef3559a8eca65febb70e504acdb.m3u8',
|
|
|
- ]
|
|
|
+ urlArr: ['http://cmgw-vpc.lechange.com:8888/LCO/7D100C2PAZ6C590/0/0/20220112T081910/051edef3559a8eca65febb70e504acdb.m3u8']
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
getVideo(urlId) {
|
|
|
- this.$http
|
|
|
- .post('/sc-community/dahuaDevice/getRealTimeUrl', { channelId: urlId, streamType: '1', type: 'hls' })
|
|
|
- .then(({ status, data, msg }) => {
|
|
|
- if (status === 0 && data) {
|
|
|
- if (data.indexOf('10.35.239.168:7086') != -1) {
|
|
|
- let newUrl = data.replace('10.35.239.168:7086', '60.191.94.122:20046');
|
|
|
- this.urlArr.push(newUrl);
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
+ // this.urlArr = `http://cmgw-vpc.lechange.com:8888/LCO/7D100C2PAZ6C590/0/0/20220112T081910/051edef3559a8eca65febb70e504acdb.m3u8`;
|
|
|
+ // this.$http
|
|
|
+ // .post('/sc-community/dahuaDevice/getRealTimeUrl', { channelId: urlId, streamType: '1', type: 'hls' })
|
|
|
+ // .then(({ status, data, msg }) => {
|
|
|
+ // if (status === 0 && data) {
|
|
|
+ // if (data.indexOf('10.35.239.168:7086') != -1) {
|
|
|
+ // let newUrl = data.replace('10.35.239.168:7086', '60.191.94.122:20046');
|
|
|
+ // this.urlArr.push(newUrl);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // });
|
|
|
}
|
|
|
},
|
|
|
mounted() {}
|
|
@@ -59,12 +58,7 @@ export default {
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
.videoContent {
|
|
|
- &.content_most {
|
|
|
- display: grid;
|
|
|
- row-gap: 20px;
|
|
|
- column-gap: 20px;
|
|
|
- grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
|
- }
|
|
|
+ height: 100%;
|
|
|
.videoList {
|
|
|
width: 100%;
|
|
|
height: 100%;
|