Swift Janus не может опубликовать sh видео, но получить удаленное видео успешно - не могу знать причину - PullRequest
1 голос
/ 09 июля 2020

Я пытался использовать Януса, чтобы позвонить в видео-комнату. проблема в том, что удаленное видео успешно отображается, но только издатель не может показать в 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.

Кто-нибудь может объяснить мне проблему, обратите внимание, что подписчик работает нормально !, я имею в виду, что я могу получать удаленное видео и отображать его на моем телефоне, но мой телефон может публиковать sh видео на janus

При открытии журнала ошибок rt c я вижу слишком много строк о : (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

RT C журнал обновлен ниже https://pastebin.com/EE7Jhz75

1 Ответ

0 голосов
/ 16 июля 2020

решено, из-за прокси-сервера не выполняется автоматическое сопоставление с ios, автоматическое сопоставление google chomre + safari.

...