视频监控修改

This commit is contained in:
zzyuan 2025-07-10 10:15:25 +08:00
parent 37d227dc0a
commit dbbbe5829b
2 changed files with 21 additions and 22 deletions

View File

@ -111,13 +111,13 @@ methods:{
success: function (xmlDoc) {
// console.log(that.formatDateTime(that.dateRange[0]))
// console.log(that.formatDateTime(that.dateRange[1]))
oWebVideoCtrl2.I_StartPlayback(szDeviceIdentify, {
szStartTime:that.formatDateTime(that.dateRange[0]),
szEndTime:that.formatDateTime(that.dateRange[1]),
iChannelID: that.chosenChannel2,
iStreamType: oLiveView.iStreamType,
bZeroChannel: oLiveView.bZeroChannel
});
// oWebVideoCtrl2.I_StartPlayback(szDeviceIdentify, {
// szStartTime:that.formatDateTime(that.dateRange[0]),
// szEndTime:that.formatDateTime(that.dateRange[1]),
// iChannelID: that.chosenChannel2,
// iStreamType: oLiveView.iStreamType,
// bZeroChannel: oLiveView.bZeroChannel
// });
}
});
}
@ -157,7 +157,7 @@ methods:{
this.$modal.msgError("设备未绑定通道号");
}
},
iframeLoaded2(Channel){
iframeLoaded2(){
var oLiveView = {
iProtocol: 1, // protocol 1<EFBFBD><EFBFBD>http, 2:https
szIP: "192.168.1.10", // protocol ip
@ -168,7 +168,7 @@ methods:{
iChannelID: 1, // channel no
bZeroChannel: false // zero channel
}
var szDeviceIdentify = oLiveView.szIP;
var szDeviceIdentify = oLiveView.szIP + "_" + oLiveView.szPort;
var oWebVideoCtrl2 = this.$refs.videoIframe2.contentWindow.WebVideoCtrl;
var that = this;
oWebVideoCtrl2.I_Stop({iWndIndex:0})
@ -186,9 +186,9 @@ methods:{
},
defaultDateRange() {
const end = new Date(new Date().toLocaleDateString());
end.setTime(end.getTime() + 24 * 60 * 60 * 1000 - 1);
end.setTime(end.getTime() + 10 * 60 * 60 * 1000);
const start = new Date((new Date().toLocaleDateString()));
start.setTime(start.getTime()+ 9 * 60 * 60 * 1000 - 1);
start.setTime(start.getTime()+ 8 * 60 * 60 * 1000);
this.start = parseInt(start.getTime() / 1000)
this.end = parseInt(end.getTime() / 1000)
return [start, end]

View File

@ -122,16 +122,15 @@ methods:{
var szInfo = "当前选择的窗口编号:" + WndIndex;
console.log(szInfo)
that.chosenWinNo = WndIndex;
},
cbDoubleClickWnd: function (iWndIndex, bFullScreen) {
console.log(1111222)
var szInfo = "当前放大的窗口编号:" + iWndIndex;
if (!bFullScreen) {
szInfo = "当前还原的窗口编号:" + iWndIndex;
}
console.log(szInfo)
}
//WebVideoCtrl.I_FullScreen(true);isFullScreen
}
// cbDoubleClickWnd: function (iWndIndex, bFullScreen) {
// oWebVideoCtrl1.I_FullScreen(iWndIndex,true);
// var szInfo = "" + iWndIndex;
// if (!bFullScreen) {
// szInfo = "" + iWndIndex;
// }
// console.log(szInfo)
// }
});
},
iframeLogout(domId){
@ -161,7 +160,7 @@ methods:{
async handleNodeClick(data) {
if(data.deviceExtendInfo&&data.deviceExtendInfo!=""){
let obj = JSON.parse(data.deviceExtendInfo)
this.chosenChannel = 15
this.chosenChannel = 18;
this.iframeLoaded(this.chosenWinNo,this.chosenChannel)
}else{
this.$modal.msgError("设备未绑定通道号");