|
|
|
@ -42,18 +42,19 @@ |
|
|
|
|
|
|
|
<div class="center"> |
|
|
|
<!-- v-for=" item in videoData" :key="item.key" --> |
|
|
|
<!-- <div class="item" v-for=" item in videoData" :key="item.key"> |
|
|
|
<div class="item" v-for=" item in videoData" :key="item.key"> |
|
|
|
<video style="width: 68%;margin-top: 0.3rem;height: 70%;margin-left: 0.3rem;" :id="item.key" autoplay></video> |
|
|
|
</div> --> |
|
|
|
<div class="item" style="position: relative;"> |
|
|
|
<video style="width: 68%;height: 70%;position: absolute;top: 0.3rem;left: 0.3rem;" id="camera0" autoplay></video> |
|
|
|
</div> |
|
|
|
<!-- <div class="item" style="position: relative;"> |
|
|
|
<video style="width: 68%;height: 70%;position: absolute;top: 0.3rem;left: 0.3rem;" id="camera0" |
|
|
|
autoplay></video> |
|
|
|
</div> |
|
|
|
<div class="item"> |
|
|
|
<video style="width: 68%;margin-top: 0.3rem;height: 70%;margin-left: 0.3rem;" id="camera1" autoplay></video> |
|
|
|
</div> |
|
|
|
<div class="item"> |
|
|
|
<video style="width: 68%;margin-top: 0.3rem;height: 70%;margin-left: 0.3rem;" id="camera2" autoplay></video> |
|
|
|
</div> |
|
|
|
</div> --> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="right"> |
|
|
|
@ -724,6 +725,7 @@ export default { |
|
|
|
var jsonParseJson = JSON.parse(baseviodejson); |
|
|
|
console.log(jsonParseJson); |
|
|
|
this.videoData = jsonParseJson |
|
|
|
console.log(this.videoData); |
|
|
|
// this.day_num = tmpdata.day.noRepeatInNum |
|
|
|
// this.week_num_num = tmpdata.week.noRepeatInNum |
|
|
|
// this.mon_num = tmpdata.month.noRepeatInNum |
|
|
|
@ -945,10 +947,11 @@ export default { |
|
|
|
//初始化 |
|
|
|
init() { |
|
|
|
let _that = this; |
|
|
|
|
|
|
|
_that.getPubKey(function () { |
|
|
|
// 请自行修改以下变量值 |
|
|
|
var appkey = "29940726"; //综合安防管理平台提供的appkey,必填 |
|
|
|
var secret = _that.setEncrypt("SkTCnQdFbNW4Z2suNj8P"); //综合安防管理平台提供的secret,必填 |
|
|
|
var appkey = _that.videoData[0].appkey; //综合安防管理平台提供的appkey,必填 |
|
|
|
var secret = _that.setEncrypt(_that.videoData[0].secret); //综合安防管理平台提供的secret,必填 |
|
|
|
var ip = "192.168.66.13"; //综合安防管理平台IP地址,必填 |
|
|
|
var playMode = 0; //初始播放模式:0-预览,1-回放 |
|
|
|
var port = 443; //综合安防管理平台端口,若启用HTTPS协议,默认443 |
|
|
|
@ -984,8 +987,8 @@ export default { |
|
|
|
let height = document.querySelector("#camera0").offsetHeight; |
|
|
|
_that.oWebControl0.JS_Resize(width, height); // 初始化后resize一次,能和盒子大小一致。 |
|
|
|
console.log(oData); |
|
|
|
console.log(width,height); |
|
|
|
_that.getVideoFun('05edddc148b141c5930301af43154942') |
|
|
|
console.log(width, height); |
|
|
|
_that.getVideoFun(_that.videoData[0].cameraIndexCode) |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
@ -993,8 +996,8 @@ export default { |
|
|
|
let _that = this; |
|
|
|
this.getPubKey2(function () { |
|
|
|
// 请自行修改以下变量值 |
|
|
|
var appkey = "29940726"; //综合安防管理平台提供的appkey,必填 |
|
|
|
var secret = _that.setEncrypt2("SkTCnQdFbNW4Z2suNj8P"); //综合安防管理平台提供的secret,必填 |
|
|
|
var appkey = _that.videoData[1].appkey; //综合安防管理平台提供的appkey,必填 |
|
|
|
var secret = _that.setEncrypt2(_that.videoData[1].secret); //综合安防管理平台提供的secret,必填 |
|
|
|
var ip = "192.168.66.13"; //综合安防管理平台IP地址,必填 |
|
|
|
var playMode = 0; //初始播放模式:0-预览,1-回放 |
|
|
|
var port = 443; //综合安防管理平台端口,若启用HTTPS协议,默认443 |
|
|
|
@ -1030,8 +1033,8 @@ export default { |
|
|
|
let height2 = document.querySelector("#camera1").offsetHeight; |
|
|
|
_that.oWebControl1.JS_Resize(width2, height2); // 初始化后resize一次,能和盒子大小一致。 |
|
|
|
console.log(oData); |
|
|
|
console.log(width2,height2); |
|
|
|
_that.getVideoFun2('05edddc148b141c5930301af43154942') |
|
|
|
console.log(width2, height2); |
|
|
|
_that.getVideoFun2(_that.videoData[1].cameraIndexCode) |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
@ -1039,8 +1042,8 @@ export default { |
|
|
|
let _that = this; |
|
|
|
this.getPubKey3(function () { |
|
|
|
// 请自行修改以下变量值 |
|
|
|
var appkey = "29940726"; //综合安防管理平台提供的appkey,必填 |
|
|
|
var secret = _that.setEncrypt3("SkTCnQdFbNW4Z2suNj8P"); //综合安防管理平台提供的secret,必填 |
|
|
|
var appkey = _that.videoData[2].appkey; //综合安防管理平台提供的appkey,必填 |
|
|
|
var secret = _that.setEncrypt3(_that.videoData[2].secret); //综合安防管理平台提供的secret,必填 |
|
|
|
var ip = "192.168.66.13"; //综合安防管理平台IP地址,必填 |
|
|
|
var playMode = 0; //初始播放模式:0-预览,1-回放 |
|
|
|
var port = 443; //综合安防管理平台端口,若启用HTTPS协议,默认443 |
|
|
|
@ -1076,8 +1079,8 @@ export default { |
|
|
|
let height3 = document.querySelector("#camera2").offsetHeight; |
|
|
|
_that.oWebControl2.JS_Resize(width3, height3); // 初始化后resize一次,能和盒子大小一致。 |
|
|
|
console.log(oData); |
|
|
|
console.log(width3,height3); |
|
|
|
_that.getVideoFun3('05edddc148b141c5930301af43154942') |
|
|
|
console.log(width3, height3); |
|
|
|
_that.getVideoFun3(_that.videoData[2].cameraIndexCode) |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
|