我有问题,连接到janus janus.plugin.videoroom插件从iOS设备使用迅捷。虽然每个步骤都是正确的,但是janus服务器发送了以下消息:
{
"janus": "hangup",
"session_id": 3201104494179497,
"sender": 7759980289270843,
"reason": "ICE failed"
}然后断线。
调试连接到janus的消息会导致以下情况:
1- RTCIceGatheringState从不更改为已完成
2.产生的候选人如下:
candidate:3215141415 1 udp 1686052607 w.x.y.z 57168 typ srflx raddr w.x.y.z rport 57168 generation 0 ufrag 340a network-id 1 network-cost 10如您所见,在生成的候选文件中,视频和音频单词分别被替换为1和0。
你知道这两个观察结果吗?
为什么janus会发送"ICE failed"信息?
发布于 2019-04-04 07:47:57
我发现获得"hang up"消息的原因是因为我没有将接收到的jsep (从janus)设置为对等连接。在setAnswer之后,jsep“挂断”消息消失了!
1- RTCIceGatheringState从不更改为已完成
对于没有"Completed"状态用于RTCIceGatheringState的问题,是因为在配置peerConnection时使用了"continualGatheringPolicy"选项,在将peerConnection设置为"gatherOnce"之后将peerConnection设置为"gatherContinually",完成的状态见!:)
2.产生的候选人如下:
这似乎是正常的,有音频/视频或0/1
https://stackoverflow.com/questions/55217064
复制相似问题