无法构造 'RTCPeerConnection':无法满足的约束 IceTransports
Failed to construct 'RTCPeerConnection': Unsatisfiable constraint IceTransports
我试图在我的本地系统上设置 RestComm Web SDK 演示应用程序,我只想为 audio/video、聊天、IVR 等创建一个应用程序(RestComm 为我的需求提供了完美的解决方案)。现在我已经在本地系统上设置了 RestComm Web SDK,每当我尝试 sip 调用时,它都会抛出 WebRTCommClient:call(): catched exception:NotSupportedError: Failed to construct 'RTCPeerConnection': Unsatisfiable在浏览器控制台上约束 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 浏览器中毫无问题地使用 olympus。我被这个例外困住了,任何建议将不胜感激。
我认为这里的问题是您正在使用的演示应用程序中的 Webrtcomm 库版本已过时,并且不包含最新 Chrome 版本的修复程序。因此,请将存储库中的 samples/hello-world/scripts/WebRTComm.js 替换为:
https://github.com/RestComm/webrtcomm/blob/master/build/WebRTComm.js
这应该可以解决您的问题。
此致,
安东尼斯·萨基里迪斯
我试图在我的本地系统上设置 RestComm Web SDK 演示应用程序,我只想为 audio/video、聊天、IVR 等创建一个应用程序(RestComm 为我的需求提供了完美的解决方案)。现在我已经在本地系统上设置了 RestComm Web SDK,每当我尝试 sip 调用时,它都会抛出 WebRTCommClient:call(): catched exception:NotSupportedError: Failed to construct 'RTCPeerConnection': Unsatisfiable在浏览器控制台上约束 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 浏览器中毫无问题地使用 olympus。我被这个例外困住了,任何建议将不胜感激。
我认为这里的问题是您正在使用的演示应用程序中的 Webrtcomm 库版本已过时,并且不包含最新 Chrome 版本的修复程序。因此,请将存储库中的 samples/hello-world/scripts/WebRTComm.js 替换为:
https://github.com/RestComm/webrtcomm/blob/master/build/WebRTComm.js
这应该可以解决您的问题。
此致, 安东尼斯·萨基里迪斯