不能在 ios 到 ios 上工作 当我使用 appRTC server( https://apprtc.appspot.com
) 进行测试时,调用正在从 iOS 到 iOS、从 iOS 到 Android、从 Android 到 iOS 工作。
但是我正在测试我的自定义服务器(http://192.168.0.100:8080
)调用在 iOS 到 iOS 和 iOS 到 Android 上都不起作用。但是Android到iOS运行良好。
当我使用 appRTC 服务器和自定义服务器进行测试时,我发现以下日志。
AppRTC 服务器日志
消息=("{\"sdp\":\"v=0\r\no=- 1775027741179794605 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE音频视频\r\na=msid 语义:WMS ARDAMS\r\nm=audio 9 UDP\/TLS\/RTP\/SAVPF 111 103 9 102 0 8 106 105 13 127 126\r\nc=IN IP4 0.0。 0.0\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=ice-ufrag:\/tWQo+jqPxhIl3IN\r\na=ice-pwd:2ygl5p2voV6hCnWEoousQ4lf\r\na=指纹:sha-256 B7: F8:19:8E:8E:4B:7B:2D:08:41:C4:84:02:5F:7A:87:36:70:FC:75:A4:5B:BD:BB:E1:02: C2:00:94:09:50:42\r\na=setup:actpass\r\na=mid:audio\r\na=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level \r\na=extmap:3 http:\/\/www.webrtc.org\/experiments\/rtp-hdrext\/abs-send-time\r\na=sendrecv\r\na=rtcp-mux\r \na=rtpmap:111 opus\/48000\/2\r\na=fmtp:111 minptime=10; useinbandfec=1\r\na=rtpmap:103 ISAC\/16000\r\na=rtpmap:9 G722\ /8000\r\na=rtpmap:102 ILBC\/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:13CN\ /8000\r\na=rtpmap:127 红色\/8000\r\na=rtpmap:126telephone-event\/8000\r\na=maxptime:60\r\na=ssrc:2389551740 cname:1Yy7HlmkEzRJ8MGE\r\na =ssrc:2389551740 msid:ARDAMS ARDAMSa0\r\na=ssrc:2389551740 mslabel:ARDAMS\r\na=ssrc:2389551740 标签:ARDAMSa0\r\nm=video 9 UDP\/TLS\/RTP\/SAVPF 100 101 116 117 96\r\nc=IN IP4 0.0.0.0\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=ice-ufrag:\/tWQo+jqPxhIl3IN\r\na=ice-pwd:2ygl5p2voV6hCnWEoousQ4lf\ r\na=指纹:sha-256 B7:F8:19:8E:8E:4B:7B:2D:08:41:C4:84:02:5F:7A:87:36:70:FC:75:A4 :5B:BD:BB:E1:02:C2:00:94:09:50:42\r\na=setup:actpass\r\na=mid:video\r\na=extmap:2 urn:ietf:参数:rtp-hdrext:toffset\r\na=extmap:3 http:\/\/www.webrtc.org\/experiments\/rtp-hdrext\/abs-send-time\r\na=extmap: 4 urn :3gpp:视频方向\r\na=sendrecv\r\na=rtcp-mux\r\na=rtpmap:100 VP8\/90000\r\na=rtcp-fb:100 ccm fir\r\na=rtcp-fb: 100 nack\r\na=rtcp-fb:100 nack pli\r\na=rtcp-fb:100 goog-remb\r\na=rtpmap:101 VP9\/90000\r\na=rtcp-fb:101 ccm fir\r\na=rtcp-fb:101 nack\r\na=rtcp-fb:101 nack pli\r\na=rtcp-fb:101 goog-remb\r\na=rtpmap:116 red\/90000\ r\na=rtpmap:117 ulpfec\/90000\r\na=rtpmap:96 rtx\/90000\r\na=fmtp:96 apt=100\r\na=ssrc-group:FID 1323191592 639993057\r\na =ssrc:1323191592 cname:1Yy7HlmkEzRJ8MGE\r\na=ssrc:1323191592 msid:ARDAMS ARDAMSv0\r\na=ssrc:1323191592 mslabel:ARDAMS\r\na=ssrc:1323191592 标签:ARDAMSv0\r\na=ssrc:639999 :1Yy7HlmkEzRJ8MGE\r\na=ssrc:639993057 msid:ARDAMS ARDAMSv0\r\na=ssrc:639993057 mslabel:ARDAMS\r\na=ssrc:639993057 label:ARDAMSv0\r\n\",\"type\":\ “提供\”}”100 VP8\/90000\r\na=rtcp-fb:100 ccm fir\r\na=rtcp-fb:100 nack\r\na=rtcp-fb:100 nack pli\r\na=rtcp-fb:100 goog-remb\r\na=rtpmap:101 VP9\/90000\r\na=rtcp-fb:101 ccm fir\r\na=rtcp-fb:101 nack\r\na=rtcp-fb:101 nack pli \r\na=rtcp-fb:101 goog-remb\r\na=rtpmap:116 red\/90000\r\na=rtpmap:117 ulpfec\/90000\r\na=rtpmap:96 rtx\/90000\ r\na=fmtp:96 apt=100\r\na=ssrc-group:FID 1323191592 639993057\r\na=ssrc:1323191592 cname:1Yy7HlmkEzRJ8MGE\r\na=ssrc:1323191592 msid:ARDAMS ARDAMSv0\r\na= ssrc:1323191592 mslabel:ARDAMS\r\na=ssrc:1323191592 label:ARDAMSv0\r\na=ssrc:639993057 cname:1Yy7HlmkEzRJ8MGE\r\na=ssrc:639993057 msid:ARDAMS ARDAMSv0\r\na=slabel:5399930 ARDAMS\r\na=ssrc:639993057 标签:ARDAMSv0\r\n\",\"type\":\"offer\"}"100 VP8\/90000\r\na=rtcp-fb:100 ccm fir\r\na=rtcp-fb:100 nack\r\na=rtcp-fb:100 nack pli\r\na=rtcp-fb:100 goog-remb\r\na=rtpmap:101 VP9\/90000\r\na=rtcp-fb:101 ccm fir\r\na=rtcp-fb:101 nack\r\na=rtcp-fb:101 nack pli \r\na=rtcp-fb:101 goog-remb\r\na=rtpmap:116 red\/90000\r\na=rtpmap:117 ulpfec\/90000\r\na=rtpmap:96 rtx\/90000\ r\na=fmtp:96 apt=100\r\na=ssrc-group:FID 1323191592 639993057\r\na=ssrc:1323191592 cname:1Yy7HlmkEzRJ8MGE\r\na=ssrc:1323191592 msid:ARDAMS ARDAMSv0\r\na= ssrc:1323191592 mslabel:ARDAMS\r\na=ssrc:1323191592 label:ARDAMSv0\r\na=ssrc:639993057 cname:1Yy7HlmkEzRJ8MGE\r\na=ssrc:639993057 msid:ARDAMS ARDAMSv0\r\na=slabel:5399930 ARDAMS\r\na=ssrc:639993057 标签:ARDAMSv0\r\n\",\"type\":\"offer\"}"100 goog-remb\r\na=rtpmap:101 VP9\/90000\r\na=rtcp-fb:101 ccm fir\r\na=rtcp-fb:101 nack\r\na=rtcp-fb:101 nack pli\r\na=rtcp-fb:101 goog-remb\r\na=rtpmap:116 red\/90000\r\na=rtpmap:117 ulpfec\/90000\r\na=rtpmap:96 rtx\/90000 \r\na=fmtp:96 apt=100\r\na=ssrc-group:FID 1323191592 639993057\r\na=ssrc:1323191592 cname:1Yy7HlmkEzRJ8MGE\r\na=ssrc:1323191592 msid:ARDAMS ARDAMSv0\r\na =ssrc:1323191592 mslabel:ARDAMS\r\na=ssrc:1323191592 label:ARDAMSv0\r\na=ssrc:639993057 cname:1Yy7HlmkEzRJ8MGE\r\na=ssrc:639993057 msid:ARDAMS ARDAMSv0\r\na=slabelsrc:6399930 :ARDAMS\r\na=ssrc:639993057 标签:ARDAMSv0\r\n\",\"type\":\"offer\"}"100 goog-remb\r\na=rtpmap:101 VP9\/90000\r\na=rtcp-fb:101 ccm fir\r\na=rtcp-fb:101 nack\r\na=rtcp-fb:101 nack pli\r\na=rtcp-fb:101 goog-remb\r\na=rtpmap:116 red\/90000\r\na=rtpmap:117 ulpfec\/90000\r\na=rtpmap:96 rtx\/90000 \r\na=fmtp:96 apt=100\r\na=ssrc-group:FID 1323191592 639993057\r\na=ssrc:1323191592 cname:1Yy7HlmkEzRJ8MGE\r\na=ssrc:1323191592 msid:ARDAMS ARDAMSv0\r\na =ssrc:1323191592 mslabel:ARDAMS\r\na=ssrc:1323191592 label:ARDAMSv0\r\na=ssrc:639993057 cname:1Yy7HlmkEzRJ8MGE\r\na=ssrc:639993057 msid:ARDAMS ARDAMSv0\r\na=slabelsrc:6399930 :ARDAMS\r\na=ssrc:639993057 标签:ARDAMSv0\r\n\",\"type\":\"offer\"}"96 rtx\/90000\r\na=fmtp:96 apt=100\r\na=ssrc-group:FID 1323191592 639993057\r\na=ssrc:1323191592 cname:1Yy7HlmkEzRJ8MGE\r\na=ssrc:1323191592 msid:ARDAMS ARDAMSv0\r\na=ssrc:1323191592 mslabel:ARDAMS\r\na=ssrc:1323191592 标签:ARDAMSv0\r\na=ssrc:639993057 cname:1Yy7HlmkEzRJ8MGE\r\na=ssrc:639993057 msid:ARDAMS ARDAMSv0\r\na =ssrc:639993057 mslabel:ARDAMS\r\na=ssrc:639993057 label:ARDAMSv0\r\n\",\"type\":\"offer\"}"96 rtx\/90000\r\na=fmtp:96 apt=100\r\na=ssrc-group:FID 1323191592 639993057\r\na=ssrc:1323191592 cname:1Yy7HlmkEzRJ8MGE\r\na=ssrc:1323191592 msid:ARDAMS ARDAMSv0\r\na=ssrc:1323191592 mslabel:ARDAMS\r\na=ssrc:1323191592 标签:ARDAMSv0\r\na=ssrc:639993057 cname:1Yy7HlmkEzRJ8MGE\r\na=ssrc:639993057 msid:ARDAMS ARDAMSv0\r\na =ssrc:639993057 mslabel:ARDAMS\r\na=ssrc:639993057 label:ARDAMSv0\r\n\",\"type\":\"offer\"}"}"}"
我的自定义服务器日志
视频方向\r\na=sendrecv\r\na=rtcp-mux\r\na=rtpmap:100 VP8\/90000\r\na=rtcp-fb:100 ccm fir\r\na=rtcp-fb: 100 nack\r\na=rtcp-fb:100 nack pli\r\na=rtcp-fb:100 goog-remb\r\na=rtpmap:101 VP9\/90000\r\na=rtcp-fb:101 ccm fir\r\na=rtcp-fb:101 nack\r\na=rtcp-fb:101 nack pli\r\na=rtcp-fb:101 goog-remb\r\na=rtpmap:116 red\/90000\ r\na=rtpmap:117 ulpfec\/90000\r\na=rtpmap:96 rtx\/90000\r\na=fmtp:96 apt=100\r\na=ssrc-group:FID 1382966710 2989628045\r\na =ssrc:1382966710 cname:lIYSgGVkbmqAsNjY\r\na=ssrc:1382966710 msid:ARDAMS ARDAMSv0\r\na=ssrc:1382966710 mslabel:ARDAMS\r\na=ssrc:1382966710 标签:ARDAMSv0\r\na=ssrcname:299 :lIYSgGVkbmqAsNjY\r\na=ssrc:2989628045 msid:ARDAMS ARDAMSv0\r\na=ssrc:2989628045 mslabel:ARDAMS\r\na=ssrc:2989628045 label:ARDAMSv0\r\n\",\"type\":\ “提供\”}”; } 100 VP8\/90000\r\na=rtcp-fb:100 ccm fir\r\na=rtcp-fb:100 nack\r\na=rtcp-fb:100 nack pli\r\na=rtcp-fb:100 goog-remb\r\na=rtpmap:101 VP9\/90000\r\na=rtcp-fb:101 ccm fir\r\na=rtcp-fb:101 nack\r\na=rtcp-fb:101 nack pli \r\na=rtcp-fb:101 goog-remb\r\na=rtpmap:116 red\/90000\r\na=rtpmap:117 ulpfec\/90000\r\na=rtpmap:96 rtx\/90000\ r\na=fmtp:96 apt=100\r\na=ssrc-group:FID 1382966710 2989628045\r\na=ssrc:1382966710 cname:lIYSgGVkbmqAsNjY\r\na=ssrc:1382966710 msid:ARDAMS ARDAMSv0\r\na= ssrc:1382966710 mslabel:ARDAMS\r\na=ssrc:1382966710 标签:ARDAMSv0\r\na=ssrc:2989628045 cname:lIYSgGVkbmqAsNjY\r\na=ssrc:2989628045 msid:ARDAMS ARDAMSv0\r\na=ssrc:298 ARDAMS\r\na=ssrc:2989628045 标签:ARDAMSv0\r\n\",\"type\":\"offer\"}"; } 100 VP8\/90000\r\na=rtcp-fb:100 ccm fir\r\na=rtcp-fb:100 nack\r\na=rtcp-fb:100 nack pli\r\na=rtcp-fb:100 goog-remb\r\na=rtpmap:101 VP9\/90000\r\na=rtcp-fb:101 ccm fir\r\na=rtcp-fb:101 nack\r\na=rtcp-fb:101 nack pli \r\na=rtcp-fb:101 goog-remb\r\na=rtpmap:116 red\/90000\r\na=rtpmap:117 ulpfec\/90000\r\na=rtpmap:96 rtx\/90000\ r\na=fmtp:96 apt=100\r\na=ssrc-group:FID 1382966710 2989628045\r\na=ssrc:1382966710 cname:lIYSgGVkbmqAsNjY\r\na=ssrc:1382966710 msid:ARDAMS ARDAMSv0\r\na= ssrc:1382966710 mslabel:ARDAMS\r\na=ssrc:1382966710 标签:ARDAMSv0\r\na=ssrc:2989628045 cname:lIYSgGVkbmqAsNjY\r\na=ssrc:2989628045 msid:ARDAMS ARDAMSv0\r\na=ssrc:298 ARDAMS\r\na=ssrc:2989628045 标签:ARDAMSv0\r\n\",\"type\":\"offer\"}"; } 100 goog-remb\r\na=rtpmap:101 VP9\/90000\r\na=rtcp-fb:101 ccm fir\r\na=rtcp-fb:101 nack\r\na=rtcp-fb:101 nack pli\r\na=rtcp-fb:101 goog-remb\r\na=rtpmap:116 red\/90000\r\na=rtpmap:117 ulpfec\/90000\r\na=rtpmap:96 rtx\/90000 \r\na=fmtp:96 apt=100\r\na=ssrc-group:FID 1382966710 2989628045\r\na=ssrc:1382966710 cname:lIYSgGVkbmqAsNjY\r\na=ssrc:1382966710 msid:ARDAMS ARDAMSv0\r\na =ssrc:1382966710 mslabel:ARDAMS\r\na=ssrc:1382966710 标签:ARDAMSv0\r\na=ssrc:2989628045 cname:lIYSgGVkbmqAsNjY\r\na=ssrc:2989628045 msid:ARDAMS ARDAMSv0\r\na=ssrc:298 :ARDAMS\r\na=ssrc:2989628045 标签:ARDAMSv0\r\n\",\"type\":\"offer\"}"; } 100 goog-remb\r\na=rtpmap:101 VP9\/90000\r\na=rtcp-fb:101 ccm fir\r\na=rtcp-fb:101 nack\r\na=rtcp-fb:101 nack pli\r\na=rtcp-fb:101 goog-remb\r\na=rtpmap:116 red\/90000\r\na=rtpmap:117 ulpfec\/90000\r\na=rtpmap:96 rtx\/90000 \r\na=fmtp:96 apt=100\r\na=ssrc-group:FID 1382966710 2989628045\r\na=ssrc:1382966710 cname:lIYSgGVkbmqAsNjY\r\na=ssrc:1382966710 msid:ARDAMS ARDAMSv0\r\na =ssrc:1382966710 mslabel:ARDAMS\r\na=ssrc:1382966710 标签:ARDAMSv0\r\na=ssrc:2989628045 cname:lIYSgGVkbmqAsNjY\r\na=ssrc:2989628045 msid:ARDAMS ARDAMSv0\r\na=ssrc:298 :ARDAMS\r\na=ssrc:2989628045 标签:ARDAMSv0\r\n\",\"type\":\"offer\"}"; } 96 rtx\/90000\r\na=fmtp:96 apt=100\r\na=ssrc-group:FID 1382966710 2989628045\r\na=ssrc:1382966710 cname:lIYSgGVkbmqAsNjY\r\na=ssrc:1382966710 msid:ARDAMS ARDAMSv0\r\na=ssrc:1382966710 mslabel:ARDAMS\r\na=ssrc:1382966710 标签:ARDAMSv0\r\na=ssrc:2989628045 cname:lIYSgGVkbmqAsNjY\r\na=ssrc:2989628045 msid:ARDAMS ARDAMSv0\r\na =ssrc:2989628045 mslabel:ARDAMS\r\na=ssrc:2989628045 label:ARDAMSv0\r\n\",\"type\":\"offer\"}"; } 96 rtx\/90000\r\na=fmtp:96 apt=100\r\na=ssrc-group:FID 1382966710 2989628045\r\na=ssrc:1382966710 cname:lIYSgGVkbmqAsNjY\r\na=ssrc:1382966710 msid:ARDAMS ARDAMSv0\r\na=ssrc:1382966710 mslabel:ARDAMS\r\na=ssrc:1382966710 标签:ARDAMSv0\r\na=ssrc:2989628045 cname:lIYSgGVkbmqAsNjY\r\na=ssrc:2989628045 msid:ARDAMS ARDAMSv0\r\na =ssrc:2989628045 mslabel:ARDAMS\r\na=ssrc:2989628045 label:ARDAMSv0\r\n\",\"type\":\"offer\"}"; }