简体   繁体   English

IOS 中的 WebRTC 视频和音频不适用于 3G/4G,但适用于 WIFI

[英]WebRTC video and Audio in IOS not working with 3G /4G but works with WIFI

I am trying to connect WebRTC video and audio in iOS connected by 3g/4g gives error but works fine with WiFi network.我试图在通过 3g/4g 连接的 iOS 中连接 WebRTC 视频和音频会出错,但在 WiFi 网络上工作正常。

And after the peer connection is found the error appears并在找到对等连接后出现错误

[carc] CAReportingClient.mm:320:-[CAReportingClient sendMessage:category:type:reporters:]_block_invoke: The operation couldn't be completed. [carc] CAReportingClient.mm:320:-[CAReportingClient sendMessage:category:type:reporters:]_block_invoke: 操作无法完成。 No valid RTCReporting and the session was started没有有效的 RTCReporting 并且会话已启动

Call setup failing on 3G/4G but working in a local network is symptomatic of a STUN failure.呼叫建立在 3G/4G 上失败但在本地网络中工作是 STUN 故障的症状。 See if you are supplying at least one valid STUN server to the WebRTC engine in your iOS code.查看您是否在 iOS 代码中为 WebRTC 引擎提供了至少一个有效的 STUN 服务器。

Edit: It's also possible that a peer-to-peer connection cannot be established in your 3G/4G setup.编辑:也有可能无法在您的 3G/4G 设置中建立对等连接。 So you also need to make sure you are supplying a valid TURN server as well.因此,您还需要确保提供有效的 TURN 服务器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM