Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/opencv/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Webrtc 无法构造';RTPeerConnection';:不可满足的约束条件_Webrtc_Restcomm - Fatal编程技术网

Webrtc 无法构造';RTPeerConnection';:不可满足的约束条件

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

我试图在本地系统上安装RestComm Web SDK演示应用程序,我只想创建一个用于音频/视频、聊天、IVR等的应用程序(RestComm为我的需要提供完美的解决方案)。现在,我已经在本地系统上安装了RestComm Web SDK,每当我尝试sip调用时,它都会在浏览器控制台上抛出WebRTCommClient:call():捕获的异常:NotSupportedError:无法构造“RTPeerConnection”:无法满足的约束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替换为:

这会解决你的问题

致以最良好的祝愿, 安东尼斯·查基里迪斯