视频对接4
This commit is contained in:
parent
4436a2df2e
commit
d8c5205ca8
|
|
@ -101,8 +101,7 @@ methods:{
|
|||
var szDeviceIdentify = oLiveView.szIP + "_" + oLiveView.szPort;
|
||||
var that = this;
|
||||
if(domId=='2'){
|
||||
var oWebVideoCtrl2 = this.$refs.videoIframe2.contentWindow.WebVideoCtrl;
|
||||
oWebVideoCtrl2.I_Logout(szDeviceIdentify)
|
||||
var oWebVideoCtrl2 = this.$refs.videoIframe2.contentWindow.WebVideoCtrl;
|
||||
oWebVideoCtrl2.I_InitPlugin(1300,700, {
|
||||
bWndFull: true,//<EFBFBD>Ƿ<EFBFBD>֧<EFBFBD>ֵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˫<EFBFBD><EFBFBD>ȫ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĭ<EFBFBD><EFBFBD>֧<EFBFBD><EFBFBD> true:֧<EFBFBD><EFBFBD> false:<EFBFBD><EFBFBD>֧<EFBFBD><EFBFBD>
|
||||
iWndowType: 1,
|
||||
|
|
|
|||
|
|
@ -61,8 +61,8 @@ methods:{
|
|||
// 初始化监控列表
|
||||
videoLogin(){
|
||||
setTimeout(() => {
|
||||
this.iframeLogin('1')
|
||||
}, 500);
|
||||
this.iframeLogin()
|
||||
}, 1000);
|
||||
},
|
||||
iframeLogin(domId){
|
||||
var oLiveView = {
|
||||
|
|
@ -77,55 +77,53 @@ methods:{
|
|||
}
|
||||
var szDeviceIdentify = oLiveView.szIP + "_" + oLiveView.szPort;
|
||||
var that = this;
|
||||
if(domId=='1'){
|
||||
var oWebVideoCtrl1 = this.$refs.videoIframe1.contentWindow.WebVideoCtrl;
|
||||
oWebVideoCtrl1.I_InitPlugin(1300,700, {
|
||||
bWndFull: true,//<EFBFBD>Ƿ<EFBFBD>֧<EFBFBD>ֵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˫<EFBFBD><EFBFBD>ȫ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĭ<EFBFBD><EFBFBD>֧<EFBFBD><EFBFBD> true:֧<EFBFBD><EFBFBD> false:<EFBFBD><EFBFBD>֧<EFBFBD><EFBFBD>
|
||||
iWndowType: 2,
|
||||
cbInitPluginComplete: function () {
|
||||
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,
|
||||
iStreamType: oLiveView.iStreamType,
|
||||
iChannelID: 15,
|
||||
bZeroChannel: oLiveView.bZeroChannel
|
||||
});
|
||||
oWebVideoCtrl1.I_StartRealPlay(szDeviceIdentify, {
|
||||
iRtspPort: oLiveView.szPort,
|
||||
iWndIndex:1,
|
||||
iStreamType: oLiveView.iStreamType,
|
||||
iChannelID: 16,
|
||||
bZeroChannel: oLiveView.bZeroChannel
|
||||
});
|
||||
oWebVideoCtrl1.I_StartRealPlay(szDeviceIdentify, {
|
||||
iRtspPort: oLiveView.szPort,
|
||||
iWndIndex:2,
|
||||
iStreamType: oLiveView.iStreamType,
|
||||
iChannelID: 21,
|
||||
bZeroChannel: oLiveView.bZeroChannel
|
||||
});
|
||||
oWebVideoCtrl1.I_StartRealPlay(szDeviceIdentify, {
|
||||
iRtspPort: oLiveView.szPort,
|
||||
iWndIndex:3,
|
||||
iStreamType: oLiveView.iStreamType,
|
||||
iChannelID: 22,
|
||||
bZeroChannel: oLiveView.bZeroChannel
|
||||
});
|
||||
}, 500);
|
||||
}
|
||||
});
|
||||
},
|
||||
cbSelWnd: function (xmlDoc) {
|
||||
let WndIndex = parseInt($(xmlDoc).find("SelectWnd").eq(0).text(), 10);
|
||||
var szInfo = "当前选择的窗口编号:" + WndIndex;
|
||||
that.chosenWinNo = WndIndex;
|
||||
},
|
||||
});
|
||||
}
|
||||
var oWebVideoCtrl1 = this.$refs.videoIframe1.contentWindow.WebVideoCtrl;
|
||||
oWebVideoCtrl1.I_InitPlugin(1300,700, {
|
||||
bWndFull: true,//<EFBFBD>Ƿ<EFBFBD>֧<EFBFBD>ֵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˫<EFBFBD><EFBFBD>ȫ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĭ<EFBFBD><EFBFBD>֧<EFBFBD><EFBFBD> true:֧<EFBFBD><EFBFBD> false:<EFBFBD><EFBFBD>֧<EFBFBD><EFBFBD>
|
||||
iWndowType: 2,
|
||||
cbInitPluginComplete: function () {
|
||||
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,
|
||||
iStreamType: oLiveView.iStreamType,
|
||||
iChannelID: 15,
|
||||
bZeroChannel: oLiveView.bZeroChannel
|
||||
});
|
||||
oWebVideoCtrl1.I_StartRealPlay(szDeviceIdentify, {
|
||||
iRtspPort: oLiveView.szPort,
|
||||
iWndIndex:1,
|
||||
iStreamType: oLiveView.iStreamType,
|
||||
iChannelID: 16,
|
||||
bZeroChannel: oLiveView.bZeroChannel
|
||||
});
|
||||
oWebVideoCtrl1.I_StartRealPlay(szDeviceIdentify, {
|
||||
iRtspPort: oLiveView.szPort,
|
||||
iWndIndex:2,
|
||||
iStreamType: oLiveView.iStreamType,
|
||||
iChannelID: 21,
|
||||
bZeroChannel: oLiveView.bZeroChannel
|
||||
});
|
||||
oWebVideoCtrl1.I_StartRealPlay(szDeviceIdentify, {
|
||||
iRtspPort: oLiveView.szPort,
|
||||
iWndIndex:3,
|
||||
iStreamType: oLiveView.iStreamType,
|
||||
iChannelID: 22,
|
||||
bZeroChannel: oLiveView.bZeroChannel
|
||||
});
|
||||
}, 500);
|
||||
}
|
||||
});
|
||||
},
|
||||
cbSelWnd: function (xmlDoc) {
|
||||
let WndIndex = parseInt($(xmlDoc).find("SelectWnd").eq(0).text(), 10);
|
||||
var szInfo = "当前选择的窗口编号:" + WndIndex;
|
||||
that.chosenWinNo = WndIndex;
|
||||
},
|
||||
});
|
||||
},
|
||||
iframeLogout(domId){
|
||||
var oLiveView = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue