Browse Source

fix import imosSdk js addr

master
fajiao 2 years ago
parent
commit
cee9108337
  1. 2
      Frontend/index.html
  2. 2
      Frontend/public/yushi/imosSdk.min.js
  3. 4
      Frontend/src/views/page/yushi.vue

2
Frontend/index.html

@ -13,6 +13,6 @@
</html>
<!-- 全局配置 -->
<script src="/webrtc-streamer/webrtcstreamer.js"></script>
<script src="/yushi/imosSdk.min.js"></script>
<script type="text/javascript" src="http://113.200.190.167:7010/static/imosSdk.min.js"></script>
<script>
</script>

2
Frontend/public/yushi/imosSdk.min.js

File diff suppressed because one or more lines are too long

4
Frontend/src/views/page/yushi.vue

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

Loading…
Cancel
Save