|
|
|
|
@ -34,7 +34,8 @@ export default {
|
|
|
|
|
videoH: 0,
|
|
|
|
|
isFullscreen: false,
|
|
|
|
|
originHeight: 0,
|
|
|
|
|
fullHeight: 0
|
|
|
|
|
fullHeight: 0,
|
|
|
|
|
players: []
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
//watch: {},
|
|
|
|
|
@ -43,6 +44,9 @@ export default {
|
|
|
|
|
return( this.clientHeight/ this.row ) + 'px';
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
destroyed() {
|
|
|
|
|
this.destory()
|
|
|
|
|
},
|
|
|
|
|
mounted () {
|
|
|
|
|
this.getWallStyle();
|
|
|
|
|
|
|
|
|
|
@ -111,14 +115,19 @@ export default {
|
|
|
|
|
console.log("idName:"+idName);
|
|
|
|
|
let video = document.getElementById(idName);
|
|
|
|
|
let player = new WebRtcPlayer(video,"camera"+cameras[i-1].id);
|
|
|
|
|
//player.play('camera'+cameras[i-1].id);
|
|
|
|
|
|
|
|
|
|
this.players.push(player);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}).catch(err => {
|
|
|
|
|
console.log(err)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
destory(){
|
|
|
|
|
for(let player of this.players){
|
|
|
|
|
console.log("stop")
|
|
|
|
|
player.destroy()
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
full () {
|
|
|
|
|
if(this.isFullscreen){
|
|
|
|
|
|