Android IOS WebRTC Audio Video Development Summary (30)

Source: Internet
Author: User

This article mainly introduces the ice and SDP in the process of some knowledge, support the original, the article to blog Garden Rtc.blacker, reproduced please explain the source.

The students who have used the Libjingle module know that the connection process is candidate and connected, while acquiring candidate and connecting, so the whole process is very fast,

But we sometimes use some other WEBRTC-based products to test when we find a long time to see the other side of the picture, what is the reason? Is there a loophole in the program?

No, mainly because they use different types of ice, in detail, see:

As above: The right side is the Ice connection mode used by Libjingle, the left side is the traditional mode, the main difference is that candidate get and establish a connection point of time is not the same.

Below is an example of traditional ice under SDP interaction:

Sdpoffer:v=0 o=-1610437942022958275 2 in IP4 127.0.0.1 s=-t=0 0 a=group:bundle Audio Video a=msid-semantic:wms WPIPGSJC 7ygh2f9mdwrqxrkg26wuhzt3zzls M=audio 49290 RTP/SAVPF 111 103 104 9 0 8 106 126 c=in IP4 43.251.159.28 a=rtcp:49290 In IP4 43.251.159.28 a=candidate:4011286938 1 udp 2122260223 172.16.36.4 49290 typ host generation 0 a=candidate:401128693  8 2 UDP 2122260223 172.16.36.4 49290 typ host generation 0 a=candidate:3671821981 1 udp 2122194687 192.168.232.1 49291 typ  Host generation 0 a=candidate:3671821981 2 udp 2122194687 192.168.232.1 49291 typ host generation 0 a=candidate:209874304  1 UDP 2122129151 192.168.234.1 49292 typ host generation 0 a=candidate:209874304 2 udp 2122129151 192.168.234.1 49292 typ Host generation 0 a=candidate:430735571 1 udp 2122063615 192.168.1.102 49293 typ host generation 0 a=candidate:430735571 2 UDP 2122063615 192.168.1.102 49293 typ host generation 0 a=candidate:2710871402 1 tcp 1518280447 172.16.36.4 0 Typ host Tcptype Active GeneratioN 0 a=candidate:2710871402 2 tcp 1518280447 172.16.36.4 0 Typ host Tcptype active generation 0 a=candidate:2488824429 1 TC P 1518214911 192.168.232.1 0 Typ host Tcptype active generation 0 a=candidate:2488824429 2 tcp 1518214911 192.168.232.1 0 Typ host Tcptype active generation 0 a=candidate:1107399024 1 tcp 1518149375 192.168.234.1 0 Typ host Tcptype active Gener ation 0 a=candidate:1107399024 2 tcp 1518149375 192.168.234.1 0 Typ host Tcptype active generation 0 a=candidate:146272976 3 1 TCP 1518083839 192.168.1.102 0 Typ host Tcptype active generation 0 a=candidate:1462729763 2 tcp 1518083839 192.168.1. 102 0 Typ host Tcptype active generation 0 a=candidate:1179184719 1 udp 1686052607 43.251.159.28 49290 typ srflx raddr 172 .16.36.4 Rport 49290 generation 0 a=candidate:1179184719 2 udp 1686052607 43.251.159.28 49290 typ srflx raddr 172.16.36.4 Rport 49290 generation 0 a=ice-ufrag:8hnogrmjieejkco5 a=ice-pwd:acjberhaumgjhskh+qv1rfyc a=fingerprint:sha-256 42:01: Ce:4c:b3:00:75:c1:3d:71:91:85: 55:d9:89:16:1f:f8:dc:13:45:c6:01:20:73:50:3f:68:f7:9b:42:a3 a=setup:actpass a=mid:audio a=extmap:1 urn:ietf: Params:rtp-hdrext:ssrc-audio-level A=extmap:3 Http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time a= Sendrecv a=rtcp-mux a=rtpmap:111 OPUS/48000/2 a=fmtp:111 minptime=10; Useinbandfec=1 a=rtpmap:103 isac/16000 a=rtpmap:104 isac/32000 a=rtpmap:9 g722/8000 a=rtpmap:0 pcmu/8000 a=rtpmap:8 pcma/8000 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:914767615 cname:i7njjbryqnjxy+i8 a=ssrc:914767615 msid: Wpipgsjc7ygh2f9mdwrqxrkg26wuhzt3zzls fbe366c6-6ac9-44b2-866f-0c629c9d2e45 a=ssrc:914767615 Mslabel: Wpipgsjc7ygh2f9mdwrqxrkg26wuhzt3zzls a=ssrc:914767615 label:fbe366c6-6ac9-44b2-866f-0c629c9d2e45 m=video 49290 RTP/ SAVPF 117 c=in IP4 43.251.159.28 a=rtcp:49290 in IP4 43.251.159.28 a=candidate:4011286938 1 UDP 2122260223 172. 16.36.4 49290 Typ host generation 0 a=candidate:4011286938 2 UDP 2122260223 172.16.36.4 49290 Typ host generation 0 a=candidate:3671821981 1 udp 2122194687 192.168.232.1 49291 typ host generation 0 a= candidate:3671821981 2 udp 2122194687 192.168.232.1 49291 typ host generation 0 a=candidate:209874304 1 UDP 2122129151 192 .168.234.1 49292 Typ host generation 0 a=candidate:209874304 2 udp 2122129151 192.168.234.1 49292 typ host generation 0 a= candidate:430735571 1 udp 2122063615 192.168.1.102 49293 typ host generation 0 a=candidate:430735571 2 UDP 2122063615 192. 168.1.102 49293 Typ host generation 0 a=candidate:2710871402 1 tcp 1518280447 172.16.36.4 0 Typ host Tcptype active genera  tion 0 a=candidate:2710871402 2 tcp 1518280447 172.16.36.4 0 Typ host Tcptype active generation 0 a=candidate:2488824429 1  TCP 1518214911 192.168.232.1 0 Typ host Tcptype active generation 0 a=candidate:2488824429 2 tcp 1518214911 192.168.232.1 0 Typ host Tcptype active generation 0 a=candidate:1107399024 1 tcp 1518149375 192.168.234.1 0 typ host Tcptype active GE Neration 0 A=candidate:1107399024 2 tcp 1518149375 192.168.234.1 0 Typ host Tcptype active generation 0 a=candidate:1462729763 1 TCP 1518083839 19 2.168.1.102 0 Typ host Tcptype active generation 0 a=candidate:1462729763 2 tcp 1518083839 192.168.1.102 0 Typ host Tcptyp E Active generation 0 a=candidate:1179184719 1 udp 1686052607 43.251.159.28 49290 typ srflx raddr 172.16.36.4 rport 49290 Generation 0 a=candidate:1179184719 2 udp 1686052607 43.251.159.28 49290 typ srflx raddr 172.16.36.4 rport 49290 generatio N 0 a=ice-ufrag:8hnogrmjieejkco5 a=ice-pwd:acjberhaumgjhskh+qv1rfyc a=fingerprint:sha-256 42:01:CE:4C:B3:00:75:C1 : 3d:71:91:85:55:d9:89:16:1f:f8:dc:13:45:c6:01:20:73:50:3f:68:f7:9b:42:a3 a=setup:actpass 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 nack pli a=rtcp-fb:100 g Oog-remb a=rtpmap:116 red/90000 a=rtpmap:117 ulpfec/90000a=rtpmap:96 rtx/90000 a=fmtp:96 apt=100 a=ssrc-group:fid 1771045130 811642261 a=ssrc:1771045130 cname:I7njJbRyQNJXY+i8 a=ssrc:1771045130 Msid:wpipgsjc7ygh2f9mdwrqxrkg26wuhzt3zzls 79fdc2d6-85c1-4d67-bd7e-44bbe6334926 a=ssrc : 1771045130 mslabel:wpipgsjc7ygh2f9mdwrqxrkg26wuhzt3zzls a=ssrc:1771045130 Label : 79fdc2d6-85c1-4d67-bd7e-44bbe6334926 a=ssrc:811642261 cname:i7njjbryqnjxy+i8 a=ssrc:811642261 msid: Wpipgsjc7ygh2f9mdwrqxrkg26wuhzt3zzls 79fdc2d6-85c1-4d67-bd7e-44bbe6334926 a=ssrc:811642261 Mslabel:  Wpipgsjc7ygh2f9mdwrqxrkg26wuhzt3zzls a=ssrc:811642261 label:79fdc2d6-85c1-4d67-bd7e-44bbe6334926
Sdpanser:v=0 o=-1610437942022958275 0 in IP4 0.0.0.0 s=kurento Media Server c=in IP4 0.0.0.0 t=0 0 A=group:bundle Audio V Ideo M=audio 49350 RTP/SAVPF 111 0 c=in IP4 115.28.63.56 a=rtpmap:111 OPUS/48000/2 a=rtpmap:0 pcmu/8000 a=sendrecv a=rtcp:49350 in IP4 115.28.63.56 a=rtcp-mux a=ssrc:4085612173 cname:[email protected] A= Extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time A=mid:audio a=ice-ufrag:k69i a=ice-pwd:2oeh/ Hwokondna67xmxq1s a=fingerprint:sha-256 00:C2:77:EF:2C:B1:73:01:10:29:3D:53:AB:81:29:59:F3:AA:9A:EB:91:B9:A8:F1 : 16:12:2d:6c:5a:5d:78:b2 a=candidate:1 1 udp 2013266431 115.28.63.56 49350 typ host a=candidate:2 1 UDP 2013266431 10.144. 37.152 58353 Typ host m=video 49350 rtp/savpf c=in IP4 115.28.63.56 b=as:500 a=rtpmap:100 vp8/90000 a=sendrecv a=rtcp- fb:100 ccm fir a=rtcp-fb:100 nack a=rtcp-fb:100 nack pli a=rtcp-fb:100 goog-remb a=rtcp:49350 in IP4 115.28.63.56 a=rtcp-m UX a=ssrc:1728895 cname:[email protected] A=extmap:3 http://www.webrtc.org/eXperiments/rtp-hdrext/abs-send-time a=mid:video a=ice-ufrag:k69i a=ice-pwd:2oeh/hwokondna67xmxq1s a=fingerprint: sha-256 00:c2:77:ef:2c:b1:73:01:10:29:3d:53:ab:81:29:59:f3:aa:9a:eb:91:b9:a8:f1:16:12:2d:6c:5a:5d:78:b2 a= Candidate:1 1 udp 2013266431 115.28.63.56 49350 typ host A=candidate:2 1 UDP 2013266431 10.144.37.152 58353 Typ host SDP a Nswer received, setting remote description

Understand the difference between the two, I believe it will help you understand ice and SDP!

Android IOS WebRTC Audio Video Development Summary (30)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.