|
|
|
@ -20,12 +20,7 @@
|
|
|
|
}"
|
|
|
|
}"
|
|
|
|
style="width: 100%;object-fit: cover;"
|
|
|
|
style="width: 100%;object-fit: cover;"
|
|
|
|
:id="`camera${item.id}`"
|
|
|
|
:id="`camera${item.id}`"
|
|
|
|
autoplay controls muted ></video>
|
|
|
|
autoplay muted ></video>
|
|
|
|
<!-- <video-player
|
|
|
|
|
|
|
|
v-if="showVideo"
|
|
|
|
|
|
|
|
@showModel="showModel(item)"
|
|
|
|
|
|
|
|
:src="item.m3u8">
|
|
|
|
|
|
|
|
</video-player> -->
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
</a-row>
|
|
|
|
</a-row>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@ -105,7 +100,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
tabsChange(key) {
|
|
|
|
tabsChange(key) {
|
|
|
|
sessionStorage.setItem('tabKey', key)
|
|
|
|
sessionStorage.setItem('tabKey', key)
|
|
|
|
this.reload()
|
|
|
|
this.autoPlay()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
showModel(item) {
|
|
|
|
showModel(item) {
|
|
|
|
this.$nextTick(() => {
|
|
|
|
this.$nextTick(() => {
|
|
|
|
@ -116,8 +111,11 @@ export default {
|
|
|
|
for(var a of this.realTimeListData){
|
|
|
|
for(var a of this.realTimeListData){
|
|
|
|
for (let b of a.cameras){
|
|
|
|
for (let b of a.cameras){
|
|
|
|
let video = document.getElementById('camera'+b.id);
|
|
|
|
let video = document.getElementById('camera'+b.id);
|
|
|
|
let player = new WebRtcPlayer(video,'camera'+b.id);
|
|
|
|
if(video){
|
|
|
|
player.load('camera'+b.id);
|
|
|
|
let player = new WebRtcPlayer(video,'camera'+b.id);
|
|
|
|
|
|
|
|
player.load('camera'+b.id);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|