我正在使用Simple Peer通过webRTC连接2个客户端
尝试将报价发送给接收方时,我会收到
无法设置远程视频描述发送参数。
这是SDP
{“ type”:“ offer”,“ sdp”:“ v = 0 \ r \ no =-3967002803862387085 2 IN IP4 127.0.0.1 \ r \ ns =-\ r \ nt = 0 0 \ r \ na = group:BUNDLE 0 1 2 \ r \ na = msid-semantic:WMS 1cWiFgNnmw599HZ2elM3tijVTaIvKA9CJ6ge \ r \ nm =音频52914 UDP / TLS / RTP / SAVPF 111103104 9 0 8 106 105 13110112113126 \ r \ nc = IN IP4 18.195.48.251 \ r \ na = rtcp:9 IN IP4 0.0.0.0 \ r \ na =候选:3850540122 1 udp 2122260223 10.180.180.2 63782 typ host generation 0 network-id 1 network-cost 50 \ r \ na =候选对象:3165758154 1 udp 2122194687 10.100.190.5 63783 typ host generation 0 network-id 2 \ r \ na = candidate:2868996266 1 tcp 1518280447 10.180.180.2 9 typ host tcptype active generation 0 network-id 1 network-cost 50 \ r \ na =候选人:4063387194 1 tcp 1518214911 10.100.190.5 9 typ host tcptype active generation 0 network-id 2 \ r \ na = candidate:1252121374 1 udp 1685987071 89.139.131.90 63783 typ srflx raddr 10.100.190.5 rport 63783 generation 0 network-id 2 \ r \ na =候选人:257568702 1 udp 41820415 18.195.48.251 52914 typ relay raddr 89.139.131.90 rport 63783 generation 0 net work-id 2 \ r \ na = candidate:1104794446 1 udp 25042943 18.195.48.251 18200 typ relay raddr 89.139.131.90 rport 59073 generation 0 network-id 2 \ r \ na = candidate:1104794446 1 udp 25042687 18.195.48.251 45877 typ relay raddr 89.139.131.90 rport 59072 generation 0 network-id 2 \ r \ na = ice-ufrag:Ujty \ r \ na = ice-pwd:PEzIY + m / GLK3tIKJKzdaL + QU \ r \ na = ice-options:trickle \ r \ na =指纹:sha-256 9F:35:29:B7:06:35:71:A3:24:57:BB:17:1D:46:A0:8A:DF:C3:43:D7:62: 4F:28:82:C2:DA:6A:D8:1E:4D:7E:5C \ r \ na = setup:actpass \ r \ na = mid:0 \ r \ na = extmap:1 urn:ietf:params :rtp-hdrext:ssrc音频级别\ r \ na = extmap:9 urn:ietf:params:rtp-hdrext:sdes:mid \ r \ na = extmap:14 urn:ietf:params:rtp-hdrext:encrypt urn:ietf:params:rtp-hdrext:ssrc音频级别\ r \ na = extmap:13 urn:ietf:params:rtp-hdrext:encrypt urn:ietf:params:rtp-hdrext:sdes:mid \ r \ na = sendrecv \ r \ na = msid:1cWiFgNnmw599HZ2elM3tijVTaIvKA9CJ6ge 61b41b64-e659-44e5-b54a-fd985b0b6ab7 \ r \ na = rtcp-mux \ r \ na = rtpmap:111 opus / 48000 / 2-r \ na 111 transport-cc \ r \ na = fmtp:111 minptime = 10; useinbandfec = 1 \ r \ na = rtpmap:103 ISAC / 16000 \ r \ na = rtpmap:104 ISAC / 32000 \ r \ na = rtpmap:9 G722 / 8000 \ r \ na = rtpmap:0 PCMU / 8000 \ r \ na = rtpmap:8 PCMA / 8000 \ r \ na = rtpmap:106 CN / 32000 \ r \ na = rtpmap:105 CN / 16000 \ r \ na = rtpmap:13 CN / 8000 \ r \ na = rtpmap:110电话事件/ 48000 \ r \ na = rtpmap:112电话事件/ 32000 \ r \ na = rtpmap:113电话事件/ 16000 \ r \ na = rtpmap:126电话事件/ 8000 \ r \ na = ssrc:2346342125 cname :P / dCG3X5qY6a + APJ \ r \ NA = SSRC:2346342125 MSID:1cWiFgNnmw599HZ2elM3tijVTaIvKA9CJ6ge 61b41b64-e659-44e5-b54a-fd985b0b6ab7 \ r \ NA = SSRC:2346342125 mslabel:1cWiFgNnmw599HZ2elM3tijVTaIvKA9CJ6ge \ r \ NA = SSRC:2346342125标签:61b41b64-E659 -44e5-b54a-fd985b0b6ab7 \ r \ nm =视频23498 UDP / TLS / RTP / SAVPF 96 97 98 99100101102 123127122125107108109109 124 \ r \ nc = IN IP4 18.195.48.251 \ r \ na = rtcp:9 IN IP4 0.0.0.0 \ r \ na = candidate:3850540122 1 udp 2122260223 10.180.180.2 63784 typ host generation 0 network-id 1 network-cost 50 \ r \ na = candidate:3165758154 1 udp 2122194687 10.100.190.5 63785典型主机生成0 network-id 2 \ r \ na = candidate:28689 96266 1 tcp 1518280447 10.180.180.2 9 typ host tcptype active generation 0 network-id 1 network-cost 50 \ r \ na = candidate:4063387194 1 tcp 1518214911 10.100.190.5 9 typ host tcptype active generation 0 network-id 2 \ r \ na =候选人:1252121374 1 udp 1685987071 89.139.131.90 63785 typ srflx raddr 10.100.190.5 rport 63785 generation 0 network-id 2 \ r \ na = candidate:1104794446 1 udp 25042687 18.195.48.251 23498 typ radrad raddr 89.139.131.90 rport 59068 generation 0 network-id 2 \ r \ na = candidate:257568702 1 udp 41820415 18.195.48.251 47216 typ relay raddr 89.139.131.90 rport 63785 generation 0 network-id 2 \ r \ na = candidate:1104794446 1 udp 25042943 18.195.48.251 55749 typ中继raddr 89.139.131.90 rport 59067第0代网络编号2 \ r \ na = ice-ufrag:Ujty \ r \ na = ice-pwd:PEzIY + m / GLK3tIKJKzdaL + QU \ r \ na = ice-options:trickle \ r \ na =指纹:sha-256 9F:35:29:B7:06:35:71:A3:24:57:BB:17:1D:46:A0:8A:DF:C3:43:D7:62 :4F:28:82:C2:DA:6A:D8:1E:4D:7E:5C \ r \ na = setup:actpass \ r \ na = mid:1 \ r \ na = extmap:2 urn:ietf:参数:rtp-hdre xt:toffset \ r \ na = extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time \ r \ na = extmap:4 urn:3gpp:video-orientation \ r \ na = extmap:5 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01 \ r \ na = extmap :6 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay \ r \ na = extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type \ r \ na = extmap:8 http://www.webrtc.org/experiments/rtp-hdrext/video-timing \ r \ na = extmap:10 http://tools.ietf.org/html/draft-ietf-avtext-framemarking-07 \ r \ na = extmap:9 urn:ietf:params:rtp-hdrext:sdes:mid \ r \ na = extmap:12 urn:ietf:params:rtp-hdrext:encrypt urn:ietf:params:rtp-hdrext:toffset \ r \ na = extmap:11 urn:ietf:params:rtp-hdrext:encrypt urn:3gpp:video-orientation \ r \ na = extmap:0 urn:ietf:params:rtp-hdrext:encrypt http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01 \ r \ na = extmap:0 urn:ietf:params:rtp-hdrext:encrypt http://www.webrtc.org/experiments/rtp-hdrext/playout-delay \ r \ na = extmap:0 urn:ietf:params:rtp-hdrext:encrypt http://www.webrtc.org/experiments/rtp-hdrext/video-content-type \ r \ na = extmap:13 urn:ietf:params:rtp-hdrext:encrypt urn:ietf:params:rtp-hdrext:sdes:mid \ r \ na = sendrecv \ r \ na = msid:1cWiFgNnmw599HZ2elM3tijVTaIvKA9CJ6ge ff8b-dccf60c606329 \ r \ na = rtcp-mux \ r \ na = rtcp-rsize \ r \ na = rtpmap:96 VP8 / 90000 \ r \ na = rtcp-fb:96 goog-remb \ r \ na = rtcp-fb:96 transport-cc \ r \ na = rtcp-fb:96 ccm fir \ r \ na = rtcp-fb:96 nack \ r \ na = rtcp-fb:96 nack pli \ r \ na = rtpmap:97 rtx / 90000 \ r \ na = fmtp:97 apt = 96 \ r \ na = rtpmap:98 VP9 / 90000 \ r \ na = rtcp-fb:98 goog-remb \ r \ na = rtcp-fb:98 transport-cc \ r \ na = rtcp-fb:98 ccm fir \ r \ na = rtcp-fb:98 nack \ r \ na = rtcp-fb:98 nack pli \ r \ na = fmtp:98 profile-id = 0 \ r \ na = rtpmap:99 rtx / 90000 \ r \ na = fmtp:99 apt = 98 \ r \ na = rtpmap:100 H264 / 90000 \ r \ na = rtcp-fb:100 goog-remb \ r \ na = rtcp-fb:100 transport-cc \ r \ na = rtcp-fb:100 ccm fir \ r \ na = rtcp-fb:100 nack \ r \ na = rtcp-fb:100 nack pli \ r \ na = fmtp:100允许级别不对称== 1;打包模式= 1;配置文件级别ID = 42001f \ r \ na = rtpmap:101 rtx / 90000 \ r \ na = fmtp:101 apt = 100 \ r \ na = rtpmap:102 H264 / 90000 \ r \ na = rtcp-fb:102 goog-remb \ r \ na = rtcp-fb:102 transport-cc \ r \ na = rtcp-fb:102 ccm fir \ r \ na = rtcp-fb:102 nack \ r \ na = rtcp-fb:102 nack pli \ r \ na = fmtp:102 level-aymmetry-allowed = 1;打包模式= 0; profile-level-id = 42001f \ r \ na = rtpmap:123 rtx / 90000 \ r \ na = fmtp:123 apt = 102 \ r \ na = rtpmap:127 H264 / 90000 \ r \ na = rtcp- fb:127 goog-remb \ r \ na = rtcp-fb:127 transport-cc \ r \ na = rtcp-fb:127 ccm fir \ r \ na = rtcp-fb:127 nack \ r \ na = rtcp-fb :127 nack pli \ r \ na = fmtp:127允许级别不对称= 1;打包模式= 1;配置文件级别id = 42e01 f \ r \ na = rtpmap:122 rtx / 90000 \ r \ na = fmtp:122 apt = 127 \ r \ na = rtpmap:125 H264 / 90000 \ r \ na = rtcp-fb:125 goog-remb \ r \ na = rtcp-fb:125 transport-cc \ r \ na = rtcp-fb:125 ccm fir \ r \ na = rtcp-fb:125 nack \ r \ na = rtcp-fb:125 nack pli \ r \ na = fmtp:125允许级别不对称== 1;打包模式= 0;配置文件级别ID = 42e01f \ r \ na = rtpmap:107 rtx / 90000 \ r \ na = fmtp:107 apt = 125 \ r \ na = rtpmap:108红色/ 90000 \ r \ na = rtpmap:109 rtx / 90000 \ r \ na = fmtp:109 apt = 108 \ r \ na = rtpmap:124 ulpfec / 90000 \ r \ na = ssrc-group:FID 351153934 628720635 \ r \ na = ssrc:351153934 cname:P / dCG3X5qY6a + Apj \ r \ na = ssrc:351153934 msid:1cWiFgNnmw599HZ2elM3tijVTaIvKA9CJ6ge ff8bcf60-3329c3aC1cA7c7ac1c7ac1c3c7ac1c7a7c7ac1c7ac1c1ac7a7c7ac1cc7ac1c1c1c3c7a7c7a7c7a7c7a7c7a7c1c9ac1c1c1c1cbcb1bcbfbfbbbbfbfbbbfbfbfbfbfbbfbfbfbfbfbfbfbfbfbfbfbf美元奖金美元汇率美元美元美元美元美元美元美元美元美元美元美元美元美元汇率\ na = ssrc:351153934标签:ff8bcf60-6329-4305-b4b8-daf20c56c10a \ r \ na = ssrc:628720635 cname:P / dCG3X5qY6a + Apj \ r \ na = ssrc:628720635 msid:1cWiFgNnmw599HZ2elM3t8Ccf6c8c7b4b4c8c7b4b9b3b -daf20c56c10a \ r \ na = ssrc:628720635 mslabel:1cWiFgNnmw599HZ2elM3tijVTaIvKA9CJ6ge \ r \ na = ssrc:628720635标签:ff8bcf60-6329- 4305-b4b8-daf20c56c10a \ r \ nm =应用程序12497 DTLS / SCTP 5000 \ r \ nc = IN IP4 18.195.48.251 \ r \ na =候选人:3850540122 1 udp 2122260223 10.180.180.2 63786 typ host generation 0 network-id 1 network -cost 50 \ r \ na = candidate:3165758154 1 udp 2122194687 10.100.190.5 63787 typ host generation 0 network-id 2 \ r \ na =候选:2868996266 1 tcp 1518280447 10.180.180.2 9 typ host tcptype active generation 0 network-id 1网络成本50 \ r \ na =候选人:4063387194 1 tcp 1518214911 10.100.190.5 9 typ host tcptype active generation 0 network-id 2 \ r \ na = candidate:1252121374 1 udp 1685987071 89.139.131.84 63787 typ srflx raddr 10.100。 190.5 rport 63787第0代网络ID 2 \ r \ na =候选者:257568702 1 udp 41820415 18.195.48.251 12497典型继电器raddr 89.139.131.90 rport 63787第0代网络ID 2 \ r \ na =候选者:1104794446 1 udp 25042943 18.195 .48.251 55726典型继电器raddr 89.139.131.90端口59065生成0 network-id 2 \ r \ na = candidate:1104794446 1 udp 25042687 18.195.48.251 46602典型继电器raddr 89.139。 131.90 rport 59066 generation 0 network-id 2 \ r \ na = ice-ufrag:Ujty \ r \ na = ice-pwd:PEzIY + m / GLK3tIKJKzdaL + QU \ r \ na = ice-options:trickle \ r \ na =指纹:sha-256 9F:35:29:B7:06:35:71:A3:24:57:BB:17:1D:46:A0:8A:DF:C3:43:D7:62:4F:28 :82:C2:DA:6A:D8:1E:4D:7E:5C \ r \ na = setup:actpass \ r \ na = mid:2 \ r \ na = sctpmap:5000 webrtc-datachannel 1024 \ r \ n “}
如果有任何格式化工具,请告诉我,我会做。 另外,我读了that this could be a codec problem,所以我尝试将profile-level-id = 42001f替换为 profile-level-id = 42e01f这没用。
为什么webRTC必须如此困难?它也可能被称为hellRTC 另外,为什么SDP的扩展部分充满了URL?..看起来好像不希望在请求或信令中传递某些内容。
谢谢。