繁体   English   中英

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

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

[carc] CAReportingClient.mm:320:-[CAReportingClient sendMessage:category:type:reporters:]_block_invoke: 操作无法完成。 没有有效的 RTCReporting 并且会话已启动

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

我认为问题是由 stun/turn 服务器引起的。

我通过在http://numb.viagenie.ca/cgi-bin/numbacct 中应用免费转向服务器来成功解决并测试它

在 swift 我只是添加

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

进入webrtc的iceServers列表,

这对我有用,至少证明我的 swift 方面是正确的(我是 iOS 开发人员),剩下的就是转向/眩晕服务器端。

暂无
暂无

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

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