swift Janus 发布不了视频,但是获取远程视频成功- 不知道是什么原因
swift Janus can not publish video, but get remote video successful - can not know reason
我尝试使用 Janus 在视频室中进行呼叫。问题是远程视频成功显示,但只有 publisher 不能显示在 janus videoroom 中,查看日志后我看到:
RTCIceConnectionState didChange state 1
RTCIceConnectionState didChange state 4
/** Represents the ice connection state of the peer connection. */
typedef NS_ENUM(NSInteger, RTCIceConnectionState) {
RTCIceConnectionStateNew,
RTCIceConnectionStateChecking,
RTCIceConnectionStateConnected,
RTCIceConnectionStateCompleted,
RTCIceConnectionStateFailed,
RTCIceConnectionStateDisconnected,
RTCIceConnectionStateClosed,
RTCIceConnectionStateCount,
};
阅读管理员 api 后,我看到文档说我的错误:
Let’s see an example of a “broken” PeerConnection instead:
"components": [
{
"id": 0,
"state": "disconnected",
"local-candidates": [
"1 1 udp 2013266431 172.17.0.3 46008 typ host\r\n",
"2 1 udp 2013266431 143.225.229.138 60710 typ host\r\n",
"3 1 udp 2013266431 2002:8fe1:1cc3:b:5c48:51ff:fee9:11ef 58925 typ host\r\n",
"4 1 udp 2013266431 fec0::b:5c48:51ff:fee9:11ef 52486 typ host\r\n"
],
"dtls": {},
"in_stats": {},
"out_stats": {}
}
]
In this example, ICE is “disconnected”, which means the ICE connectivity checks never started at all. As a result, the DTLS and data stats sections are obviously empty, as Janus never got to the point of involving them. What is the cause of the problem here? Looking at the data Janus provides, one thing immediately pops to the eye: there are just local candidates (the ones Janus gathered for itself), but no remote candidates at all: this means that the client failed to send them to Janus for some reason (e.g., your client is not sending trickle candidates) and so Janus can’t do anything to establish a media connection.
任何人都可以向我解释问题,请注意订阅者工作正常!,我的意思是我可以获取远程视频并在我的 phone 中显示,但我的 phone 可以发布给 janus 的视频
当打开 rtc 错误日志时,我看到太多关于以下内容的行:
(stunport.cc:279): Jingle:Port[0x1248a2e00:audio:1:0:local:Net[en2:169.254.0.x/16:Wifi]]: UDP send of 100 bytes failed with error 65
RTC 日志更新如下
https://pastebin.com/EE7Jhz75
已解决,因为代理服务器无法从 ios、google chrome + safari 自动映射。
我尝试使用 Janus 在视频室中进行呼叫。问题是远程视频成功显示,但只有 publisher 不能显示在 janus videoroom 中,查看日志后我看到:
RTCIceConnectionState didChange state 1
RTCIceConnectionState didChange state 4
/** Represents the ice connection state of the peer connection. */
typedef NS_ENUM(NSInteger, RTCIceConnectionState) {
RTCIceConnectionStateNew,
RTCIceConnectionStateChecking,
RTCIceConnectionStateConnected,
RTCIceConnectionStateCompleted,
RTCIceConnectionStateFailed,
RTCIceConnectionStateDisconnected,
RTCIceConnectionStateClosed,
RTCIceConnectionStateCount,
};
阅读管理员 api 后,我看到文档说我的错误:
Let’s see an example of a “broken” PeerConnection instead:
"components": [
{
"id": 0,
"state": "disconnected",
"local-candidates": [
"1 1 udp 2013266431 172.17.0.3 46008 typ host\r\n",
"2 1 udp 2013266431 143.225.229.138 60710 typ host\r\n",
"3 1 udp 2013266431 2002:8fe1:1cc3:b:5c48:51ff:fee9:11ef 58925 typ host\r\n",
"4 1 udp 2013266431 fec0::b:5c48:51ff:fee9:11ef 52486 typ host\r\n"
],
"dtls": {},
"in_stats": {},
"out_stats": {}
}
]
In this example, ICE is “disconnected”, which means the ICE connectivity checks never started at all. As a result, the DTLS and data stats sections are obviously empty, as Janus never got to the point of involving them. What is the cause of the problem here? Looking at the data Janus provides, one thing immediately pops to the eye: there are just local candidates (the ones Janus gathered for itself), but no remote candidates at all: this means that the client failed to send them to Janus for some reason (e.g., your client is not sending trickle candidates) and so Janus can’t do anything to establish a media connection.
任何人都可以向我解释问题,请注意订阅者工作正常!,我的意思是我可以获取远程视频并在我的 phone 中显示,但我的 phone 可以发布给 janus 的视频
当打开 rtc 错误日志时,我看到太多关于以下内容的行:
(stunport.cc:279): Jingle:Port[0x1248a2e00:audio:1:0:local:Net[en2:169.254.0.x/16:Wifi]]: UDP send of 100 bytes failed with error 65
RTC 日志更新如下
https://pastebin.com/EE7Jhz75
已解决,因为代理服务器无法从 ios、google chrome + safari 自动映射。