本文介绍了IOS中的WebRTC视频和音频不能与3G / 4G配合使用,但可以与WIFI配合使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试连接由3g / 4g连接的iOS中的WebRTC视频和音频给出错误,但在WiFi网络上工作正常。

I am trying to connect WebRTC video and audio in iOS connected by 3g/4g gives error but works fine with WiFi network.

找到对等连接后出现错误

And after the peer connection is found the error appears


推荐答案

呼叫设置在3G / 4G上失败但工作正常在本地网络中出现STUN故障的症状。看看你是否在iOS代码中向WebRTC引擎提供至少一个有效的STUN服务器。

Call setup failing on 3G/4G but working in a local network is symptomatic of a STUN failure. See if you are supplying at least one valid STUN server to the WebRTC engine in your iOS code.

编辑:也可能是同行无法在3G / 4G设置中建立到对等连接。因此,您还需要确保提供有效的TURN服务器。

It's also possible that a peer-to-peer connection cannot be established in your 3G/4G setup. So you also need to make sure you are supplying a valid TURN server as well.

这篇关于IOS中的WebRTC视频和音频不能与3G / 4G配合使用,但可以与WIFI配合使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-03 15:18