WebRTC Offer

Posted on Mon 16 February 2015 in Programming

  • Following is an example of WebRTC offer
    v=0
    o=- 1414473004838919132 2 IN IP4 127.0.0.1
    s=-
    t=0 0
    a=group:BUNDLE audio video
    a=msid-semantic: WMS kzVE50kWvEuubkKjwQ0ACd9qxJi7TgkoZrFW
    m=audio 9 RTP/SAVPF 111 103 104 9 0 8 106 105 13 126
    c=IN IP4 0.0.0.0
    a=rtcp:9 IN IP4 0.0.0.0
    a=ice-ufrag:0YV2BIov8mQM/RpF
    a=ice-pwd:PE8Xcdusq7YrU86OH4CsV2FQ
    a=ice-options:google-ice
    a=fingerprint:sha-256 EE:5B:DA:BC:9C:6E:13:B0:0F:61:5E:2B:E2:78:1F:22:28:23:DE:FF:FE:30:83:48:6A:F7:F3:6B:C6:22:92:E1
    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
    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:3694308053 cname:A5tcFPm3yXhONV9K
    a=ssrc:3694308053 msid:kzVE50kWvEuubkKjwQ0ACd9qxJi7TgkoZrFW 8dd8e6f5-91e4-4df4-872b-c38685f4e8fd
    a=ssrc:3694308053 mslabel:kzVE50kWvEuubkKjwQ0ACd9qxJi7TgkoZrFW
    a=ssrc:3694308053 label:8dd8e6f5-91e4-4df4-872b-c38685f4e8fd
    m=video 9 RTP/SAVPF 100 116 117 96
    c=IN IP4 0.0.0.0
    a=rtcp:9 IN IP4 0.0.0.0
    a=ice-ufrag:0YV2BIov8mQM/RpF
    a=ice-pwd:PE8Xcdusq7YrU86OH4CsV2FQ
    a=ice-options:google-ice
    a=fingerprint:sha-256 EE:5B:DA:BC:9C:6E:13:B0:0F:61:5E:2B:E2:78:1F:22:28:23:DE:FF:FE:30:83:48:6A:F7:F3:6B:C6:22:92:E1
    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 goog-remb
    a=rtpmap:116 red/90000
    a=rtpmap:117 ulpfec/90000
    a=rtpmap:96 rtx/90000
    a=fmtp:96 apt=100
    a=ssrc-group:FID 1635609277 1978321025
    a=ssrc:1635609277 cname:A5tcFPm3yXhONV9K
    a=ssrc:1635609277 msid:kzVE50kWvEuubkKjwQ0ACd9qxJi7TgkoZrFW e13839a3-2d22-4f60-bb5a-cb784b62a076
    a=ssrc:1635609277 mslabel:kzVE50kWvEuubkKjwQ0ACd9qxJi7TgkoZrFW
    a=ssrc:1635609277 label:e13839a3-2d22-4f60-bb5a-cb784b62a076
    a=ssrc:1978321025 cname:A5tcFPm3yXhONV9K
    a=ssrc:1978321025 msid:kzVE50kWvEuubkKjwQ0ACd9qxJi7TgkoZrFW e13839a3-2d22-4f60-bb5a-cb784b62a076
    a=ssrc:1978321025 mslabel:kzVE50kWvEuubkKjwQ0ACd9qxJi7TgkoZrFW
    a=ssrc:1978321025 label:e13839a3-2d22-4f60-bb5a-cb784b62a076
  • Answer from remotePeerConnection:
    v=0
    o=- 518582524906791233 2 IN IP4 127.0.0.1
    s=-
    t=0 0
    a=group:BUNDLE audio video
    a=msid-semantic: WMS
    m=audio 9 RTP/SAVPF 111 103 104 9 0 8 106 105 13 126
    c=IN IP4 0.0.0.0
    a=rtcp:9 IN IP4 0.0.0.0
    a=ice-ufrag:C9CvNNu5jbhza1W1
    a=ice-pwd:h4BDyntvACk0Fap48z9zt2cd
    a=fingerprint:sha-256 EE:5B:DA:BC:9C:6E:13:B0:0F:61:5E:2B:E2:78:1F:22:28:23:DE:FF:FE:30:83:48:6A:F7:F3:6B:C6:22:92:E1
    a=setup:active
    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=recvonly
    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: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
    m=video 9 RTP/SAVPF 100 116 117 96
    c=IN IP4 0.0.0.0
    a=rtcp:9 IN IP4 0.0.0.0
    a=ice-ufrag:C9CvNNu5jbhza1W1
    a=ice-pwd:h4BDyntvACk0Fap48z9zt2cd
    a=fingerprint:sha-256 EE:5B:DA:BC:9C:6E:13:B0:0F:61:5E:2B:E2:78:1F:22:28:23:DE:FF:FE:30:83:48:6A:F7:F3:6B:C6:22:92:E1
    a=setup:active
    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=recvonly
    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 goog-remb
    a=rtpmap:116 red/90000
    a=rtpmap:117 ulpfec/90000
    a=rtpmap:96 rtx/90000
    a=fmtp:96 apt=100
  • ICE
webrtc_demo_2nd.html:48 20.224: Local ICE candidate: 
candidate:3958847638 1 udp 2122260223 192.168.3.14 62873 typ host generation 0
webrtc_demo_2nd.html:48 20.225: Local ICE candidate: 
candidate:3958847638 2 udp 2122260223 192.168.3.14 62873 typ host generation 0
webrtc_demo_2nd.html:48 20.225: Local ICE candidate: 
candidate:3958847638 1 udp 2122260223 192.168.3.14 62873 typ host generation 0
webrtc_demo_2nd.html:48 20.225: Local ICE candidate: 
candidate:3958847638 2 udp 2122260223 192.168.3.14 62873 typ host generation 0
webrtc_demo_2nd.html:48 20.226: Remote ICE candidate: 
 candidate:3958847638 1 udp 2122260223 192.168.3.14 49166 typ host generation 0
webrtc_demo_2nd.html:48 20.227: Remote ICE candidate: 
 candidate:3958847638 1 udp 2122260223 192.168.3.14 49166 typ host generation 0