-1

这是 GWT/GAE 上的 webRTC 应用程序,除了一些网络配置外,它运行良好。在这种情况下(当 p2p 视频聊天不起作用时)网络是一侧的 attMifi 和另一侧的 at&t (u-verse)。我们同时使用 STUN 和 TURN 服务器 (turnservers.com)。尽管在失败情况下iceConnectionStateChange 停留在“ICEConnectionStateChecking”,但ICE 候选者的交换是正常的。下面是来自提供报价(并收到答案)的浏览器客户端的报价/答案 SDP。两个客户端都使用最新的 chrome。(日志由 chrome://webrtc-internals 提供)

type: offer, sdp: v=0
o=- 5390964131278613156 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio video
a=msid-semantic: WMS F9dcB5SiD7cSD2jrxdZruldnmAdiVaHK4dhL
m=audio 1 RTP/SAVPF 111 103 104 0 8 107 106 105 13 126
c=IN IP4 0.0.0.0
a=rtcp:1 IN IP4 0.0.0.0
a=ice-ufrag:/Pt6xdNi5qhxh4Eu
a=ice-pwd:y69sYd+b5f6PNNVTqze+0e7g
a=ice-options:google-ice
a=fingerprint:sha-256 41:60:34:64:87:C3:79:92:49:9B:8A:2F:6E:A8:04:74:BF:63:2F:4A:D7:C0:60:1E:54:A3:0F:61:7A:CE:B4:89
a=mid:audio
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=sendrecv
a=rtcp-mux
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:QwIGi8fFaSR7fSNcEyqcNlEr014E3qfbyGzMvk9m
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:107 CN/48000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:126 telephone-event/8000
a=maxptime:60
a=ssrc:2354337027 cname:zS0tMKeqqiAE+v9q
a=ssrc:2354337027 msid:F9dcB5SiD7cSD2jrxdZruldnmAdiVaHK4dhL F9dcB5SiD7cSD2jrxdZruldnmAdiVaHK4dhLa0
a=ssrc:2354337027 mslabel:F9dcB5SiD7cSD2jrxdZruldnmAdiVaHK4dhL
a=ssrc:2354337027 label:F9dcB5SiD7cSD2jrxdZruldnmAdiVaHK4dhLa0
m=video 1 RTP/SAVPF 100 116 117
c=IN IP4 0.0.0.0
a=rtcp:1 IN IP4 0.0.0.0
a=ice-ufrag:/Pt6xdNi5qhxh4Eu
a=ice-pwd:y69sYd+b5f6PNNVTqze+0e7g
a=ice-options:google-ice
a=fingerprint:sha-256 41:60:34:64:87:C3:79:92:49:9B:8A:2F:6E:A8:04:74:BF:63:2F:4A:D7:C0:60:1E:54:A3:0F:61:7A:CE:B4:89
a=mid:video
a=extmap:2 urn:ietf:params:rtp-hdrext:toffset
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=sendrecv
a=rtcp-mux
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:QwIGi8fFaSR7fSNcEyqcNlEr014E3qfbyGzMvk9m
a=rtpmap:100 VP8/90000
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 goog-remb
a=rtpmap:116 red/90000
a=rtpmap:117 ulpfec/90000
a=ssrc:1640957078 cname:zS0tMKeqqiAE+v9q
a=ssrc:1640957078 msid:F9dcB5SiD7cSD2jrxdZruldnmAdiVaHK4dhL F9dcB5SiD7cSD2jrxdZruldnmAdiVaHK4dhLv0
a=ssrc:1640957078 mslabel:F9dcB5SiD7cSD2jrxdZruldnmAdiVaHK4dhL
a=ssrc:1640957078 label:F9dcB5SiD7cSD2jrxdZruldnmAdiVaHK4dhLv0



type: answer, sdp: v=0
o=- 2519254656827397438 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio video
a=msid-semantic: WMS EHj5nMGJ5YJNdu7FKGq4wVhXXJZ9pzj8tiD4
m=audio 1 RTP/SAVPF 111 103 104 0 8 107 106 105 13 126
c=IN IP4 0.0.0.0
a=rtcp:1 IN IP4 0.0.0.0
a=ice-ufrag:gjKGSQjT7UCKli97
a=ice-pwd:/7sbePOVufFaO/jyETlTon1s
a=fingerprint:sha-256 E0:D8:C0:CF:B8:59:D3:CA:76:1E:6A:0C:9B:58:78:41:EC:BD:F2:6A:13:D6:B9:CC:82:9A:FB:16:AA:FB:76:75
a=mid:audio
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=sendrecv
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:107 CN/48000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:126 telephone-event/8000
a=maxptime:60
a=ssrc:3561414579 cname:oYDNJglSfZdK4lbv
a=ssrc:3561414579 msid:EHj5nMGJ5YJNdu7FKGq4wVhXXJZ9pzj8tiD4 EHj5nMGJ5YJNdu7FKGq4wVhXXJZ9pzj8tiD4a0
a=ssrc:3561414579 mslabel:EHj5nMGJ5YJNdu7FKGq4wVhXXJZ9pzj8tiD4
a=ssrc:3561414579 label:EHj5nMGJ5YJNdu7FKGq4wVhXXJZ9pzj8tiD4a0
m=video 1 RTP/SAVPF 100 116 117
c=IN IP4 0.0.0.0
a=rtcp:1 IN IP4 0.0.0.0
a=ice-ufrag:gjKGSQjT7UCKli97
a=ice-pwd:/7sbePOVufFaO/jyETlTon1s
a=fingerprint:sha-256 E0:D8:C0:CF:B8:59:D3:CA:76:1E:6A:0C:9B:58:78:41:EC:BD:F2:6A:13:D6:B9:CC:82:9A:FB:16:AA:FB:76:75
a=mid:video
a=extmap:2 urn:ietf:params:rtp-hdrext:toffset
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=sendrecv
a=rtcp-mux
a=rtpmap:100 VP8/90000
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 goog-remb
a=rtpmap:116 red/90000
a=rtpmap:117 ulpfec/90000
a=ssrc:201046042 cname:oYDNJglSfZdK4lbv
a=ssrc:201046042 msid:EHj5nMGJ5YJNdu7FKGq4wVhXXJZ9pzj8tiD4 EHj5nMGJ5YJNdu7FKGq4wVhXXJZ9pzj8tiD4v0
a=ssrc:201046042 mslabel:EHj5nMGJ5YJNdu7FKGq4wVhXXJZ9pzj8tiD4
a=ssrc:201046042 label:EHj5nMGJ5YJNdu7FKGq4wVhXXJZ9pzj8tiD4v0
4

1 回答 1

1

您的 TURN 服务器可能配置错误(或凭据错误);您应该查看该chrome://webrtc-internals页面并验证是否存在具有您的 TURN 服务器 IP 的 ICE 候选人。您发布的报价和答案不包含任何 ICE 候选人,因为 Chrome 使用涓流 ICE

您可能想尝试其他具有相同网络配置的应用程序,例如AppRTCvLine 链接,看看您是否能够与它们连接。

于 2013-10-29T04:24:11.840 回答