1

我试图使用 Janus 来呼叫视频室。问题是远程视频成功显示,但只有发布者无法在 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,
};

阅读 admin 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.

谁能解释一下这个问题,注意订阅者工作正常!,我的意思是我可以在手机上获取远程视频并显示,但我的手机可以将视频发布到 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

4

1 回答 1

1

已解决,因为代理服务器不是来自 ios、google chomre + safari 自动映射的自动映射。

于 2020-07-16T10:58:16.490 回答