视频对接5

This commit is contained in:
zzyuan 2025-07-08 16:16:11 +08:00
parent d8c5205ca8
commit 3c9547f291
2 changed files with 18 additions and 28 deletions

View File

@ -109,9 +109,8 @@ methods:{
oWebVideoCtrl2.I_InsertOBJECTPlugin("divPlugin");
oWebVideoCtrl2.I_Login(oLiveView.szIP,oLiveView.iProtocol, oLiveView.szPort, oLiveView.szUsername, oLiveView.szPassword, {
success: function (xmlDoc) {
setTimeout(function () {
console.log(that.formatDateTime(that.dateRange[0]))
console.log(that.formatDateTime(that.dateRange[1]))
// 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]),
@ -119,7 +118,6 @@ methods:{
iStreamType: oLiveView.iStreamType,
bZeroChannel: oLiveView.bZeroChannel
});
}, 500);
}
});
}
@ -154,9 +152,7 @@ methods:{
if(data.deviceExtendInfo&&data.deviceExtendInfo!=""){
let obj = JSON.parse(data.deviceExtendInfo)
this.chosenChannel2 = 15
setTimeout(() => {
this.iframeLoaded2()
}, 500);
}else{
this.$modal.msgError("设备未绑定通道号");
}

View File

@ -85,7 +85,6 @@ methods:{
oWebVideoCtrl1.I_InsertOBJECTPlugin("divPlugin");
oWebVideoCtrl1.I_Login(oLiveView.szIP,oLiveView.iProtocol, oLiveView.szPort, oLiveView.szUsername, oLiveView.szPassword, {
success: function (xmlDoc) {
setTimeout(function () {
oWebVideoCtrl1.I_StartRealPlay(szDeviceIdentify, {
iRtspPort: oLiveView.szPort,
iWndIndex:0,
@ -114,7 +113,6 @@ methods:{
iChannelID: 22,
bZeroChannel: oLiveView.bZeroChannel
});
}, 500);
}
});
},
@ -153,9 +151,7 @@ methods:{
if(data.deviceExtendInfo&&data.deviceExtendInfo!=""){
let obj = JSON.parse(data.deviceExtendInfo)
this.chosenChannel = 15
setTimeout(() => {
this.iframeLoaded(this.chosenWinNo,this.chosenChannel)
}, 500);
}else{
this.$modal.msgError("设备未绑定通道号");
}
@ -173,9 +169,7 @@ methods:{
}
var szDeviceIdentify = oLiveView.szIP;
var oWebVideoCtrl1 = this.$refs.videoIframe1.contentWindow.WebVideoCtrl;
oWebVideoCtrl1.I_Stop({
iWndIndex:WinNo
})
oWebVideoCtrl1.I_Stop({ iWndIndex:WinNo })
setTimeout(function () {
oWebVideoCtrl1.I_StartRealPlay(szDeviceIdentify, {
iRtspPort: oLiveView.szPort,
@ -184,7 +178,7 @@ methods:{
iChannelID: Channel,
bZeroChannel: oLiveView.bZeroChannel
});
}, 800);
}, 500);
},
}