gpt4 book ai didi

webrtc - 未能构建 'RTCPeerConnection' : Unsatisfiable constraint IceTransports

转载 作者:行者123 更新时间:2023-12-04 01:15:44 27 4
gpt4 key购买 nike

我试图在我的本地系统上设置 RestComm Web SDK 演示应用程序,我只想为音频/视频、聊天、IVR 等创建一个应用程序(RestComm 为我提供了满足我需求的完美解决方案)。现在我已经在本地系统上设置了 RestComm Web SDK,每当我尝试 sip 调用时,它都会抛出 WebRTCommClient:call(): 捕获异常:NotSupportedError: 无法构建 'RTCPeerConnection': 不可满足的约束 IceTransports 在浏览器控制台上。

我的 webRTC 配置如下:

// setup WebRTClient
wrtcConfiguration = {
communicationMode: WebRTCommClient.prototype.SIP,
sip: {
sipUserAgent: 'TelScale RestComm Web Client 1.0.0 BETA4',
sipRegisterMode: register,
sipOutboundProxy: parameters['registrar'],
sipDomain: parameters['domain'],
sipDisplayName: parameters['username'],
sipUserName: parameters['username'],
sipLogin: parameters['username'],
sipPassword: parameters['password'],
},
RTCPeerConnection: {
iceServers: undefined,
stunServer: 'stun.l.google.com:19302',
turnServer: undefined,
turnLogin: undefined,
turnPassword: undefined,
}
};

虽然我可以使用 奥林巴斯在 Chrome 浏览器中没有任何问题。我坚持这个异常(exception),任何建议将不胜感激。

最佳答案

我认为这里的问题是您正在使用的演示应用程序中的 Webrtcomm 库版本已过时,并且不包含最新 Chrome 版本的修复程序。因此,请将存储库中的 samples/hello-world/scripts/WebRTComm.js 替换为:

https://github.com/RestComm/webrtcomm/blob/master/build/WebRTComm.js

那应该可以解决您的问题。

此致,
安东尼斯·察基里迪斯

关于webrtc - 未能构建 'RTCPeerConnection' : Unsatisfiable constraint IceTransports,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37937253/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com