|
@ -92,7 +92,6 @@ export default defineComponent({ |
|
|
LoginSignature: loginSignature |
|
|
LoginSignature: loginSignature |
|
|
} |
|
|
} |
|
|
ysApi.Base.LoginV2(params).then((data) => { |
|
|
ysApi.Base.LoginV2(params).then((data) => { |
|
|
console.log(data); |
|
|
|
|
|
let accessToken = data.AccessToken; |
|
|
let accessToken = data.AccessToken; |
|
|
ysApi.Base.SetViidToken(accessToken); |
|
|
ysApi.Base.SetViidToken(accessToken); |
|
|
ysApi.Base.SetVmToken(accessToken); |
|
|
ysApi.Base.SetVmToken(accessToken); |
|
@ -101,6 +100,7 @@ export default defineComponent({ |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
initImosSdk() { |
|
|
initImosSdk() { |
|
|
|
|
|
//参考 http://113.200.190.167:8093/static/demo.html |
|
|
//在使用https 的时候设置为https 代理端口号 |
|
|
//在使用https 的时候设置为https 代理端口号 |
|
|
let isHttps = "https:" === document.location.protocol; |
|
|
let isHttps = "https:" === document.location.protocol; |
|
|
if (isHttps) imosSdk.setLinkPort("7077"); |
|
|
if (isHttps) imosSdk.setLinkPort("7077"); |
|
@ -116,7 +116,6 @@ export default defineComponent({ |
|
|
imosSdk.registerLiveMsg((result) => { |
|
|
imosSdk.registerLiveMsg((result) => { |
|
|
console.log(result) |
|
|
console.log(result) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
}).catch(function (err) { |
|
|
}).catch(function (err) { |
|
|
console.log(err); |
|
|
console.log(err); |
|
|
alert("调用失败" + err); |
|
|
alert("调用失败" + err); |
|
@ -190,6 +189,7 @@ export default defineComponent({ |
|
|
}, |
|
|
}, |
|
|
creatVideoPanel() { |
|
|
creatVideoPanel() { |
|
|
let iframeObj = imosSdk.createPanelWindow(); |
|
|
let iframeObj = imosSdk.createPanelWindow(); |
|
|
|
|
|
console.error(iframeObj) |
|
|
// 如果窗格创建已经到达上限 |
|
|
// 如果窗格创建已经到达上限 |
|
|
if (iframeObj === null) { |
|
|
if (iframeObj === null) { |
|
|
alert("窗格创建已经到达上限"); |
|
|
alert("窗格创建已经到达上限"); |
|
|