apprtc连接几次卡住/失败

时间:2018-08-13 14:00:00

标签: firefox webrtc p2p sdp apprtc

我已经设置了apprtc代码库,并且从apprtc android应用程序启动了流到网页。我们可以使用Chrome网页继续流式传输视频。但是使用mozilla,首次尝试后,Android端没有Ice连接连接的回调命中。但是在网页中,Ice连接已正确连接。为什么这种行为?我有以下日志

第一次尝试

C->WSS: {"type":"candidate","label":0,"id":"audio","candidate":"candidate:0 1 UDP 2122252543 192.168.20.72 59725 typ host"} apprtc.debug.js:1644:5
ICE connection state changed to: checking apprtc.debug.js:1146:5

C->WSS: {"type":"candidate","label":0,"id":"audio","candidate":"candidate:1 1 UDP 1686052863 111.93.250.90 59725 typ srflx raddr 192.168.20.72 rport 59725"} apprtc.debug.js:1644:5

C->WSS: {"type":"candidate","label":0,"id":"audio","candidate":"candidate:2 1 UDP 92217343 158.69.221.198 54793 typ relay raddr 158.69.221.198 rport 54793"} apprtc.debug.js:1644:5
End of candidates.

第二次尝试

WSS->C: {"msg":"{\"type\":\"candidate\",\"label\":0,\"id\":\"audio\",\"candidate\":\"candidate:3663218814 1 udp 2122260223 100.78.227.87 33506 typ host generation 0 ufrag crkl network-id 4 network-cost 10\"}","error":""}

got signaling message apprtc.debug.js:990:5
Prefer audio send codec: undefined apprtc.debug.js:1413:5
Prefer video send codec: undefined apprtc.debug.js:1413:5
Sending answer to peer. apprtc.debug.js:1039:5
Signaling state changed to: have-remote-offer apprtc.debug.js:1124:5
Set remote session description success. apprtc.debug.js:1062:5
Waiting for remote video. apprtc.debug.js:309:9
Remote video started; currentTime: 149.15047619047618 apprtc.debug.js:318:9
Call setup time: 149292ms. apprtc.debug.js:339:5
Prefer audio receive codec: undefined apprtc.debug.js:1413:5
Prefer video receive codec: undefined apprtc.debug.js:1413:5

WSS->C: {"msg":"{\"type\":\"candidate\",\"label\":0,\"id\":\"audio\",\"candidate\":\"candidate:3663218814 1 udp 2122194687 100.78.227.87 55276 typ host generation 0 ufrag crkl network-id 3 network-cost 900\"}","error":""}
apprtc.debug.js:1582:13
got signaling message apprtc.debug.js:990:5
155.024: Remote candidate added successfully. apprtc.debug.js:29:9
test11 apprtc.debug.js:806:9

C->WSS: {"type":"candidate","label":0,"id":"audio","candidate":"candidate:0 1 UDP 2122252543 192.168.20.72 37712 typ host"} apprtc.debug.js:1644:5
ICE connection state changed to: checking apprtc.debug.js:1146:5

WSS->C: {"msg":"{\"type\":\"candidate\",\"label\":0,\"id\":\"audio\",\"candidate\":\"candidate:842163049 1 udp 1685987071 27.97.217.131 55276 typ srflx raddr 100.78.227.87 rport 55276 generation 0 ufrag crkl network-id 3 network-cost 900\"}","error":""}

apprtc.debug.js:1582:13
got signaling message apprtc.debug.js:990:5
156.057: Remote candidate added successfully. apprtc.debug.js:29:9

WSS->C: {"msg":"{\"type\":\"candidate\",\"label\":0,\"id\":\"audio\",\"candidate\":\"candidate:453802058 1 udp 41819903 158.69.221.198 55213 typ relay raddr 27.97.217.131 rport 55276 generation 0 ufrag crkl network-id 3 network-cost 900\"}","error":""}

apprtc.debug.js:1582:13
got signaling message apprtc.debug.js:990:5
156.070: Remote candidate added successfully. apprtc.debug.js:29:9

C->WSS: {"type":"candidate","label":0,"id":"audio","candidate":"candidate:1 1 UDP 1686052863 182.19.86.34 37712 typ srflx raddr 192.168.20.72 rport 37712"} apprtc.debug.js:1644:5

C->WSS: {"type":"candidate","label":0,"id":"audio","candidate":"candidate:2 1 UDP 92217343 158.69.221.198 55216 typ relay raddr 158.69.221.198 rport 55216"} apprtc.debug.js:1644:5

End of candidates.

与候选邮件有关的任何问题吗?

0 个答案:

没有答案