视频对接5
This commit is contained in:
parent
d8c5205ca8
commit
3c9547f291
|
|
@ -109,17 +109,15 @@ methods:{
|
||||||
oWebVideoCtrl2.I_InsertOBJECTPlugin("divPlugin");
|
oWebVideoCtrl2.I_InsertOBJECTPlugin("divPlugin");
|
||||||
oWebVideoCtrl2.I_Login(oLiveView.szIP,oLiveView.iProtocol, oLiveView.szPort, oLiveView.szUsername, oLiveView.szPassword, {
|
oWebVideoCtrl2.I_Login(oLiveView.szIP,oLiveView.iProtocol, oLiveView.szPort, oLiveView.szUsername, oLiveView.szPassword, {
|
||||||
success: function (xmlDoc) {
|
success: function (xmlDoc) {
|
||||||
setTimeout(function () {
|
// console.log(that.formatDateTime(that.dateRange[0]))
|
||||||
console.log(that.formatDateTime(that.dateRange[0]))
|
// console.log(that.formatDateTime(that.dateRange[1]))
|
||||||
console.log(that.formatDateTime(that.dateRange[1]))
|
oWebVideoCtrl2.I_StartPlayback(szDeviceIdentify, {
|
||||||
oWebVideoCtrl2.I_StartPlayback(szDeviceIdentify, {
|
szStartTime:that.formatDateTime(that.dateRange[0]),
|
||||||
szStartTime:that.formatDateTime(that.dateRange[0]),
|
szEndTime:that.formatDateTime(that.dateRange[1]),
|
||||||
szEndTime:that.formatDateTime(that.dateRange[1]),
|
iChannelID: that.chosenChannel2,
|
||||||
iChannelID: that.chosenChannel2,
|
iStreamType: oLiveView.iStreamType,
|
||||||
iStreamType: oLiveView.iStreamType,
|
bZeroChannel: oLiveView.bZeroChannel
|
||||||
bZeroChannel: oLiveView.bZeroChannel
|
});
|
||||||
});
|
|
||||||
}, 500);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -154,9 +152,7 @@ methods:{
|
||||||
if(data.deviceExtendInfo&&data.deviceExtendInfo!=""){
|
if(data.deviceExtendInfo&&data.deviceExtendInfo!=""){
|
||||||
let obj = JSON.parse(data.deviceExtendInfo)
|
let obj = JSON.parse(data.deviceExtendInfo)
|
||||||
this.chosenChannel2 = 15
|
this.chosenChannel2 = 15
|
||||||
setTimeout(() => {
|
this.iframeLoaded2()
|
||||||
this.iframeLoaded2()
|
|
||||||
}, 500);
|
|
||||||
}else{
|
}else{
|
||||||
this.$modal.msgError("设备未绑定通道号");
|
this.$modal.msgError("设备未绑定通道号");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,6 @@ methods:{
|
||||||
oWebVideoCtrl1.I_InsertOBJECTPlugin("divPlugin");
|
oWebVideoCtrl1.I_InsertOBJECTPlugin("divPlugin");
|
||||||
oWebVideoCtrl1.I_Login(oLiveView.szIP,oLiveView.iProtocol, oLiveView.szPort, oLiveView.szUsername, oLiveView.szPassword, {
|
oWebVideoCtrl1.I_Login(oLiveView.szIP,oLiveView.iProtocol, oLiveView.szPort, oLiveView.szUsername, oLiveView.szPassword, {
|
||||||
success: function (xmlDoc) {
|
success: function (xmlDoc) {
|
||||||
setTimeout(function () {
|
|
||||||
oWebVideoCtrl1.I_StartRealPlay(szDeviceIdentify, {
|
oWebVideoCtrl1.I_StartRealPlay(szDeviceIdentify, {
|
||||||
iRtspPort: oLiveView.szPort,
|
iRtspPort: oLiveView.szPort,
|
||||||
iWndIndex:0,
|
iWndIndex:0,
|
||||||
|
|
@ -114,7 +113,6 @@ methods:{
|
||||||
iChannelID: 22,
|
iChannelID: 22,
|
||||||
bZeroChannel: oLiveView.bZeroChannel
|
bZeroChannel: oLiveView.bZeroChannel
|
||||||
});
|
});
|
||||||
}, 500);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
@ -153,9 +151,7 @@ methods:{
|
||||||
if(data.deviceExtendInfo&&data.deviceExtendInfo!=""){
|
if(data.deviceExtendInfo&&data.deviceExtendInfo!=""){
|
||||||
let obj = JSON.parse(data.deviceExtendInfo)
|
let obj = JSON.parse(data.deviceExtendInfo)
|
||||||
this.chosenChannel = 15
|
this.chosenChannel = 15
|
||||||
setTimeout(() => {
|
this.iframeLoaded(this.chosenWinNo,this.chosenChannel)
|
||||||
this.iframeLoaded(this.chosenWinNo,this.chosenChannel)
|
|
||||||
}, 500);
|
|
||||||
}else{
|
}else{
|
||||||
this.$modal.msgError("设备未绑定通道号");
|
this.$modal.msgError("设备未绑定通道号");
|
||||||
}
|
}
|
||||||
|
|
@ -173,9 +169,7 @@ methods:{
|
||||||
}
|
}
|
||||||
var szDeviceIdentify = oLiveView.szIP;
|
var szDeviceIdentify = oLiveView.szIP;
|
||||||
var oWebVideoCtrl1 = this.$refs.videoIframe1.contentWindow.WebVideoCtrl;
|
var oWebVideoCtrl1 = this.$refs.videoIframe1.contentWindow.WebVideoCtrl;
|
||||||
oWebVideoCtrl1.I_Stop({
|
oWebVideoCtrl1.I_Stop({ iWndIndex:WinNo })
|
||||||
iWndIndex:WinNo
|
|
||||||
})
|
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
oWebVideoCtrl1.I_StartRealPlay(szDeviceIdentify, {
|
oWebVideoCtrl1.I_StartRealPlay(szDeviceIdentify, {
|
||||||
iRtspPort: oLiveView.szPort,
|
iRtspPort: oLiveView.szPort,
|
||||||
|
|
@ -184,7 +178,7 @@ methods:{
|
||||||
iChannelID: Channel,
|
iChannelID: Channel,
|
||||||
bZeroChannel: oLiveView.bZeroChannel
|
bZeroChannel: oLiveView.bZeroChannel
|
||||||
});
|
});
|
||||||
}, 800);
|
}, 500);
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue