Skip to content

Instantly share code, notes, and snippets.

@mondain
Created November 30, 2020 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mondain/d6c474107f6bc27745e234014b8464fe to your computer and use it in GitHub Desktop.
Save mondain/d6c474107f6bc27745e234014b8464fe to your computer and use it in GitHub Desktop.
SDP Offer from a browser to Red5 Pro Server for a participant
Changes here would be setting mid 1 through 3 to `recvonly` in addition to the new video entry as mid 5.
type: offer, sdp: v=0
o=- 8815930240178044352 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0 1 2 3 4 5 6
a=msid-semantic: WMS ifOcH0OobeWoMmedB3ooL1Aj1OqEqe08YJE3
m=audio 9 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 110 112 113 126
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:kR30
a=ice-pwd:TfXNJbJtUgI72z4YkEaEVrFQ
a=ice-options:trickle
a=fingerprint:sha-256 11:A7:4C:AE:D0:12:32:A5:41:C6:11:FD:90:BE:0A:4A:5D:B5:F5:D5:F4:20:E4:49:77:FF:86:B1:4E:5A:45:EA
a=setup:actpass
a=mid:0
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=sendrecv
a=msid:ifOcH0OobeWoMmedB3ooL1Aj1OqEqe08YJE3 c1f511c5-f00e-4691-8a8d-18b053968179
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
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:110 telephone-event/48000
a=rtpmap:112 telephone-event/32000
a=rtpmap:113 telephone-event/16000
a=rtpmap:126 telephone-event/8000
a=ssrc:3445577288 cname:m7vLyTMy2jIc1ctD
a=ssrc:3445577288 msid:ifOcH0OobeWoMmedB3ooL1Aj1OqEqe08YJE3 c1f511c5-f00e-4691-8a8d-18b053968179
a=ssrc:3445577288 mslabel:ifOcH0OobeWoMmedB3ooL1Aj1OqEqe08YJE3
a=ssrc:3445577288 label:c1f511c5-f00e-4691-8a8d-18b053968179
m=audio 9 UDP/TLS/RTP/SAVPF 111
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:kR30
a=ice-pwd:TfXNJbJtUgI72z4YkEaEVrFQ
a=ice-options:trickle
a=fingerprint:sha-256 11:A7:4C:AE:D0:12:32:A5:41:C6:11:FD:90:BE:0A:4A:5D:B5:F5:D5:F4:20:E4:49:77:FF:86:B1:4E:5A:45:EA
a=setup:actpass
a=mid:1
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=recvonly
a=msid:- 1
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
m=audio 9 UDP/TLS/RTP/SAVPF 111
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:kR30
a=ice-pwd:TfXNJbJtUgI72z4YkEaEVrFQ
a=ice-options:trickle
a=fingerprint:sha-256 11:A7:4C:AE:D0:12:32:A5:41:C6:11:FD:90:BE:0A:4A:5D:B5:F5:D5:F4:20:E4:49:77:FF:86:B1:4E:5A:45:EA
a=setup:actpass
a=mid:2
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=recvonly
a=msid:- 2
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
m=audio 9 UDP/TLS/RTP/SAVPF 111
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:kR30
a=ice-pwd:TfXNJbJtUgI72z4YkEaEVrFQ
a=ice-options:trickle
a=fingerprint:sha-256 11:A7:4C:AE:D0:12:32:A5:41:C6:11:FD:90:BE:0A:4A:5D:B5:F5:D5:F4:20:E4:49:77:FF:86:B1:4E:5A:45:EA
a=setup:actpass
a=mid:3
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=recvonly
a=msid:- 3
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
m=video 9 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 102 121 127 120 125 107 108 109 124 119 123
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:kR30
a=ice-pwd:TfXNJbJtUgI72z4YkEaEVrFQ
a=ice-options:trickle
a=fingerprint:sha-256 11:A7:4C:AE:D0:12:32:A5:41:C6:11:FD:90:BE:0A:4A:5D:B5:F5:D5:F4:20:E4:49:77:FF:86:B1:4E:5A:45:EA
a=setup:actpass
a=mid:4
a=extmap:14 urn:ietf:params:rtp-hdrext:toffset
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:13 urn:3gpp:video-orientation
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:12 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:11 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type
a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-timing
a=extmap:8 http://www.webrtc.org/experiments/rtp-hdrext/color-space
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=sendrecv
a=msid:ifOcH0OobeWoMmedB3ooL1Aj1OqEqe08YJE3 0e1cc0e0-2fc0-4549-a268-2f6f00b572f6
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:96 VP8/90000
a=rtcp-fb:96 goog-remb
a=rtcp-fb:96 transport-cc
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=rtpmap:97 rtx/90000
a=fmtp:97 apt=96
a=rtpmap:98 VP9/90000
a=rtcp-fb:98 goog-remb
a=rtcp-fb:98 transport-cc
a=rtcp-fb:98 ccm fir
a=rtcp-fb:98 nack
a=rtcp-fb:98 nack pli
a=fmtp:98 profile-id=0
a=rtpmap:99 rtx/90000
a=fmtp:99 apt=98
a=rtpmap:100 VP9/90000
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=fmtp:100 profile-id=2
a=rtpmap:101 rtx/90000
a=fmtp:101 apt=100
a=rtpmap:102 H264/90000
a=rtcp-fb:102 goog-remb
a=rtcp-fb:102 transport-cc
a=rtcp-fb:102 ccm fir
a=rtcp-fb:102 nack
a=rtcp-fb:102 nack pli
a=fmtp:102 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f
a=rtpmap:121 rtx/90000
a=fmtp:121 apt=102
a=rtpmap:127 H264/90000
a=rtcp-fb:127 goog-remb
a=rtcp-fb:127 transport-cc
a=rtcp-fb:127 ccm fir
a=rtcp-fb:127 nack
a=rtcp-fb:127 nack pli
a=fmtp:127 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42001f
a=rtpmap:120 rtx/90000
a=fmtp:120 apt=127
a=rtpmap:125 H264/90000
a=rtcp-fb:125 goog-remb
a=rtcp-fb:125 transport-cc
a=rtcp-fb:125 ccm fir
a=rtcp-fb:125 nack
a=rtcp-fb:125 nack pli
a=fmtp:125 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtpmap:107 rtx/90000
a=fmtp:107 apt=125
a=rtpmap:108 H264/90000
a=rtcp-fb:108 goog-remb
a=rtcp-fb:108 transport-cc
a=rtcp-fb:108 ccm fir
a=rtcp-fb:108 nack
a=rtcp-fb:108 nack pli
a=fmtp:108 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42e01f
a=rtpmap:109 rtx/90000
a=fmtp:109 apt=108
a=rtpmap:124 red/90000
a=rtpmap:119 rtx/90000
a=fmtp:119 apt=124
a=rtpmap:123 ulpfec/90000
a=ssrc-group:FID 4037091843 1140617284
a=ssrc:4037091843 cname:m7vLyTMy2jIc1ctD
a=ssrc:4037091843 msid:ifOcH0OobeWoMmedB3ooL1Aj1OqEqe08YJE3 0e1cc0e0-2fc0-4549-a268-2f6f00b572f6
a=ssrc:4037091843 mslabel:ifOcH0OobeWoMmedB3ooL1Aj1OqEqe08YJE3
a=ssrc:4037091843 label:0e1cc0e0-2fc0-4549-a268-2f6f00b572f6
a=ssrc:1140617284 cname:m7vLyTMy2jIc1ctD
a=ssrc:1140617284 msid:ifOcH0OobeWoMmedB3ooL1Aj1OqEqe08YJE3 0e1cc0e0-2fc0-4549-a268-2f6f00b572f6
a=ssrc:1140617284 mslabel:ifOcH0OobeWoMmedB3ooL1Aj1OqEqe08YJE3
a=ssrc:1140617284 label:0e1cc0e0-2fc0-4549-a268-2f6f00b572f6
m=video 9 UDP/TLS/RTP/SAVPF 102
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:kR30
a=ice-pwd:TfXNJbJtUgI72z4YkEaEVrFQ
a=ice-options:trickle
a=fingerprint:sha-256 11:A7:4C:AE:D0:12:32:A5:41:C6:11:FD:90:BE:0A:4A:5D:B5:F5:D5:F4:20:E4:49:77:FF:86:B1:4E:5A:45:EA
a=setup:actpass
a=mid:5
a=extmap:14 urn:ietf:params:rtp-hdrext:toffset
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:13 urn:3gpp:video-orientation
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:12 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:11 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type
a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-timing
a=extmap:8 http://www.webrtc.org/experiments/rtp-hdrext/color-space
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=recvonly
a=msid:- 5
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:102 H264/90000
a=rtcp-fb:102 goog-remb
a=rtcp-fb:102 transport-cc
a=rtcp-fb:102 ccm fir
a=rtcp-fb:102 nack
a=rtcp-fb:102 nack pli
a=fmtp:102 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f
m=application 9 UDP/DTLS/SCTP webrtc-datachannel
c=IN IP4 0.0.0.0
a=ice-ufrag:kR30
a=ice-pwd:TfXNJbJtUgI72z4YkEaEVrFQ
a=ice-options:trickle
a=fingerprint:sha-256 11:A7:4C:AE:D0:12:32:A5:41:C6:11:FD:90:BE:0A:4A:5D:B5:F5:D5:F4:20:E4:49:77:FF:86:B1:4E:5A:45:EA
a=setup:actpass
a=mid:6
a=sctp-port:5000
a=max-message-size:262144
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment