我正在尝试将 Sinch 集成到我们的项目之一中。
我正在尝试从 WEB调用ANDROID 应用。
该连接正在使成功建立。但是没有显示视频,而且通话会在9到10秒内自动断开的连接...
当我从Android App调用Web时,不会发生这种情况。
我正在按照他们的视频通话文档中的代码进行操作。

通话记录:

Notification { progress=0,  message="Successfully added proxy ICE candidate",  object=mozRTCIceCandidate}
Notification { progress=0,  message="Successfully sent JOINED",  object=g}
Notification { progress=0,  message="Call changing state to ESTABLISHED",  object=undefined}
Notification { progress=0,  message="Call was un-muted using unmute().",  object=undefined}
Notification { progress=0,  message="WebRTC: Connection state changed",  object=Event iceconnectionstatechange}
Error { name="SinchError",  domain=-1,  code=1001,  more...} // code: 1001, domain: -1, message: "Ice connection failed. Hanging up call!"
Notification { progress=0,  message="Call HANGUP Received",  object=undefined}
-- ICE failed, see about:webrtc for more details
MXPLog { message="Added meta data to MXP message",  object=r}
MXPLog { message="Identified Encoding Key",  object=r}
MXPLog { message="Split message into frames as needed",  object=r}
MXPLog { message="Identified Tx Channels",  object=r}
MXPLog { message="Transmitting [channel, frame]",  object=[2]}
Notification { progress=0,  message="WebRTC: Connection state changed",  object=Event iceconnectionstatechange}
Notification { progress=0,  message="WebRTC: Signaling state change",  object=Event signalingstatechange}

为什么我收到Ice connection failed. Hanging up call!错误.. ??
我正在使用Mozilla Firefox来测试功能...
在此先感谢您的帮助。我被困在这里...

最佳答案

我花了几个小时试图解决这个问题,最后我发现这是由于Web和android都在同一个网络上(通常是在编码时)引起的。看起来,sinch在同一局域网上不起作用。

关于javascript - Sinch:从Web调用自动获取 'HUNG_UP',我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/37829523/

10-09 22:48
查看更多