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