SkypeSDK视频和音频问题-找不到mediaRelayAccessToken [英] SkypeSDK Video and audio issue - mediaRelayAccessToken not found

查看:123
本文介绍了SkypeSDK视频和音频问题-找不到mediaRelayAccessToken的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在向掩护中添加音频或视频服务时遇到问题. 聊天服务对我来说很好. 添加视频或音频服务时,出现以下错误:

I'm having problems with adding an audio or a video service to a coversation. The chat service works fine for me. When I add a video or an audio service I get following error:

Error: GET /ucwa/oauth/v1/applications/113925534802/communication/mediaRelayAccessToken failed: 404
{
  [functions]: ,
  __proto__: { },
  code: "RequestFailed",
  description: "GET /ucwa/oauth/v1/applications/113925534802/communication/mediaRelayAccessToken failed: 404",
  message: "GET /ucwa/oauth/v1/applications/113925534802/communication/mediaRelayAccessToken failed: 404",
  name: "Error",
  req: { },
  rsp: { },
  stack: "Error: GET /ucwa/oauth/v1/applications/113925534802/communication/mediaRelayAccessToken failed: 404
at process (https://swx.cdn.skype.com/build2015/v5/SDK-build.js:8079:29)
at Anonymous function (https://swx.cdn.skype.com/build2015/v5/SDK-build.js:8018:29)
at Anonymous function (https://swx.cdn.skype.com/build2015/v5/SDK-build.js:1714:25)
at map (https://swx.cdn.skype.com/build2015/v5/SDK-build.js:1331:25)
at decompose (https://swx.cdn.skype.com/build2015/v5/SDK-build.js:8017:25)
at Anonymous function (https://swx.cdn.skype.com/build2015/v5/SDK-build.js:8007:29)
at handle (https://swx.cdn.skype.com/build2015/v5/SDK-build.js:2220:33)
at Anonymous function (https://swx.cdn.skype.com/build2015/v5/SDK-build.js:698:25)"
}

Skype for Business插件已安装并且可以正常运行. 当前未安装Skype Edge服务器. 我正在使用Internet Explorer 11.

The Skype For Business Plugin is installed and works fine. A Skype Edge server is currently not installed. I'm using Internet Explorer 11.

Microsoft以及我自己的网站上的Prem Sample上的Skype Web SDK发生错误.

The error occurs with the Skype Web SDK On Prem Sample from Microsoft as well as on my own website.

当我第二次尝试将视频或音频添加到同一对话中时,我根本没有收到任何错误消息,但是仍然无法正常工作.该请求不会显示在开发工具或提琴手中.我正在使用最新版本的Skype SDk引导程序.

When I try to add video or audio for the second time to the same conversation i dont get any error message at all, but it still doesn't work. The request doesnt show up in the dev tools nor in fiddler. I'm using the latest version of the Skype SDk bootstrapper.

客户端和服务器都在同一子网中.

Both clients and server are in the same subnet.

先谢谢了.

推荐答案

我遇到了同样的问题.不确定如何发生,但SDK无法获取或应用媒体配置. 您可以使用以下解决方法:

I encountered the same problem. Not sure how it happens, but the sdk has troubles to fetch or apply the media config. You can use the this workaround:

在sdk的调试版本中,跟随第18892行,注释掉这两个调用:

Following line 18,892 in the debug version of the sdk, comment out both calls:

uninit(); throw error;

uninit(); throw error;

.结果:

function init() { pcMediaConfig = mediaPlugin.createComponent({ type: 'MediaPlatformConfig', hide: true, inproc: false }); pcMediaConfig.event(onPluginComponentEvent); pcMediaConfig.state.changed(function (state) { log('pcMediaConfig.state = ' + state); }); var p = pcMediaConfig.load().then(getMediaConfig).then(setMediaConfig).then(null, function (error) { log('MediaConfig::init rejected'); //uninit(); //throw error; }); return p; }

function init() { pcMediaConfig = mediaPlugin.createComponent({ type: 'MediaPlatformConfig', hide: true, inproc: false }); pcMediaConfig.event(onPluginComponentEvent); pcMediaConfig.state.changed(function (state) { log('pcMediaConfig.state = ' + state); }); var p = pcMediaConfig.load().then(getMediaConfig).then(setMediaConfig).then(null, function (error) { log('MediaConfig::init rejected'); //uninit(); //throw error; }); return p; }

因此,您必须下载引导程序和sdk才能永久应用补丁.为此,只需获取调试版本(引导程序版本1.2.5)并替换为功能onConfig(config)第48行

Therefore you have to download the bootstrapper and the sdk to permanently apply the patch. To do this just fetch both in the debug version (bootstrapper version 1.2.5) and replace in function onConfig(config) line 48

}, config.corsScript && (scriptAttributes.crossOrigin = ""), loader.loadScript(getPackageUrl(config), null, handleError, scriptAttributes);

使用

}, config.corsScript && (scriptAttributes.crossOrigin = ""), loader.loadScript("./scripts/SkypeSDK.js", null, handleError, scriptAttributes);

或您的等效路径

这篇关于SkypeSDK视频和音频问题-找不到mediaRelayAccessToken的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆