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



[carc] CAReportingClient.mm:320:-[CAReportingClient sendMessage:category:type:reporters:]_block_invoke:无法完成操作。没有有效的 RTCR 正在移植,会话已启动

我在使用Google Stun:Stun:stun.l.google.com:19302时遇到同样的问题

我认为问题是由眩晕/转弯服务器引起的。

我通过应用自由轮次服务器成功地解决并测试了它 http://numb.viagenie.ca/cgi-bin/numbacct

在 swift 中,我只是添加了

RTCIceServer(urlStrings: ["turn:numb.viagenie.ca:3478"], username: "YourUserName", credential: "yourPassword")

进入 webrtc 的 iceServers 列表,

这对我有用,至少证明我的 swift 方面是正确的(我是 iOS 开发人员(,其余的都是回合/眩晕服务器端。

最新更新