RTCPeerConnection createAnswer失败

时间:2014-06-05 05:23:52

标签: video-streaming webrtc video-conferencing

我试图连接两台计算机来交换视频流。我能够收到SDP优惠,还添加了来自提供者/呼叫者的流。但未能创建SDP答案。

0.021: Creating RTCPeerConnection...
0.021: Success to create RTCPeerConnection.
0.987: Requesting local stream.
4.180: Received local stream.
22.120: Received Offer.
22.120: Remote stream added.
Error:  CreateAnswer failed.
22.169: Received Candidate: a=candidate:1998176022 1 udp 2122260223 192.168.88.208 46443 typ host generation 0
22.226: Received Candidate: a=candidate:1998176022 2 udp 2122260223 192.168.88.208 46443 typ host generation 0
22.226: Received Candidate: a=candidate:1998176022 1 udp 2122260223 192.168.88.208 46443 typ host generation 0
22.227: Received Candidate: a=candidate:1998176022 2 udp 2122260223 192.168.88.208 46443 typ host generation 0
22.256: Received Candidate: a=candidate:966411238 1 tcp 1518280447 192.168.88.208 0 typ host generation 0
22.372: Received Candidate: a=candidate:966411238 2 tcp 1518280447 192.168.88.208 0 typ host generation 0
22.373: Received Candidate: a=candidate:966411238 1 tcp 1518280447 192.168.88.208 0 typ host generation 0
22.373: Received Candidate: a=candidate:966411238 2 tcp 1518280447 192.168.88.208 0 typ host generation 0

当我只在一台计算机上打开2个浏览器时,通信成功,它能够无缝地传输视频。

当我使用2台不同的计算机相互通信时,会出现问题。

SDP优惠

v=0
o=- 3647929299 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio video
a=msid-semantic: WMS 8TnXkmBI0ZEOHDznXdmqS7dVSEU2PxGhXW60
m=audio 1 RTP/SAVPF 103 104 111 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:Z9+/jlU5Wynz9M1K
a=ice-pwd:L4UqsHcKsL5J+sPCndmJ5uhv
a=ice-options:google-ice
a=recvonly
a=mid:audio
a=rtcp-mux
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:BhKxBEhmKA8IB8teXTaVgFF2xCdQhQolQVslK/Oa
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10
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
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:Z9+/jlU5Wynz9M1K
a=ice-pwd:L4UqsHcKsL5J+sPCndmJ5uhv
a=ice-options:google-ice
a=sendrecv
a=mid:video
a=rtcp-mux
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:BhKxBEhmKA8IB8teXTaVgFF2xCdQhQolQVslK/Oa
a=rtpmap:100 VP8/90000
a=rtpmap:116 red/90000
a=rtpmap:117 ulpfec/90000
a=ssrc:1877114908 cname:WqJ/aC1amc1HeATB
a=ssrc:1877114908 msid:8TnXkmBI0ZEOHDznXdmqS7dVSEU2PxGhXW60 8TnXkmBI0ZEOHDznXdmqS7dVSEU2PxGhXW60v0
a=ssrc:1877114908 mslabel:8TnXkmBI0ZEOHDznXdmqS7dVSEU2PxGhXW60
a=ssrc:1877114908 label:8TnXkmBI0ZEOHDznXdmqS7dVSEU2PxGhXW60v0

0 个答案:

没有答案