o=- 2833773620626745940 2 IN IP4 127.0.0.1
s=-
t=0 0
// ice模式: full / lite, 设置lite表示始终为controlled,不需要发起STUN binding探测,只需要回复 binding response, 在开发SFU服务时非常有用, 只需要服务器一方设置为lite (都为full时, 双向探测;都为lite时, 互不探测)
a=ice-lite
a=group:BUNDLE 0 1
a=msid-semantic: WMS iUezVKFxpUtCWz7QMIaaBz6G4EjOigfQkaJ9
m=audio 9 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 110 112 113 126
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:F5HT
a=ice-pwd:Yq6v/v+OXqYSQH6uMOPYRCRn
a=ice-options:trickle
a=fingerprint:sha-256 17:23:81:91:E6:48:E4:A0:15:C4:5A:12:E4:A5:8F:54:63:5D:F2:B1:30:4F:E7:1E:E7:B8:BE:34:FC:AE:7E:BF
// DTLS握手模式(谁是client Hello发起者): active / passive / actpass / holdconn, actpass表示既可以是client也可以是server, active表示client, passive表示server; RFC: https://tools.ietf.org/html/rfc4145#section-4
a=setup:actpass
a=mid:0
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:3 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
// 媒体流方向: sendrecv / sendonly / recvonly / inactive, sendrecv表示可以双向传输, sendonly表示只发送数据, recvonly表示只接收数据,在SFU服务模式中,客户端作为发布者则服务器可以设置为recvonly,反过来客户端作为订阅者则服务器可以设置为sendonly
a=sendrecv
a=msid:iUezVKFxpUtCWz7QMIaaBz6G4EjOigfQkaJ9 81f03266-774c-4ada-8283-88ddb82a491e
a=rtcp-mux
// 音频opus编码
a=rtpmap:111 opus/48000/2
// 仅作为SFU服务时, 可以不开启transport-cc, 而选择开启 nack, 否则采样率、码率等会发生变化
a=rtcp-fb:111 transport-cc
// minptime表示最小打包时长为10ms, useinbandfec表示使用opus编码器内置的fec功能, maxaveragebitrate表示最大传输比特率, maxplaybackrate表示最大采样率, usedtx=1表示不说话时不发送数据, stereo=1表示使用立体声,此时opus使用celt编码(单声道使用silk编码)
a=fmtp:111 minptime=10;useinbandfec=1;maxaveragebitrate=64000;maxplaybackrate=48000;usedtx=1;stereo=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:110 telephone-event/48000
a=rtpmap:112 telephone-event/32000
a=rtpmap:113 telephone-event/16000
a=rtpmap:126 telephone-event/8000
a=ssrc:1219380370 cname:UvuYuIsugaM69ery
a=ssrc:1219380370 msid:iUezVKFxpUtCWz7QMIaaBz6G4EjOigfQkaJ9 81f03266-774c-4ada-8283-88ddb82a491e
a=ssrc:1219380370 mslabel:iUezVKFxpUtCWz7QMIaaBz6G4EjOigfQkaJ9
a=ssrc:1219380370 label:81f03266-774c-4ada-8283-88ddb82a491e
m=video 9 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 102 122 127 121 125 107 108 109 124 120 123 119 114 115 116
// 设置本端可以接收的最大码率kbps
b=AS:1000
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:F5HT
a=ice-pwd:Yq6v/v+OXqYSQH6uMOPYRCRn
a=ice-options:trickle
a=fingerprint:sha-256 17:23:81:91:E6:48:E4:A0:15:C4:5A:12:E4:A5:8F:54:63:5D:F2:B1:30:4F:E7:1E:E7:B8:BE:34:FC:AE:7E:BF
a=setup:actpass
a=mid:1
a=extmap:14 urn:ietf:params:rtp-hdrext:toffset
a=extmap:13 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:12 urn:3gpp:video-orientation
a=extmap:2 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:11 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:6 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://tools.ietf.org/html/draft-ietf-avtext-framemarking-07
a=extmap:9 http://www.webrtc.org/experiments/rtp-hdrext/color-space
a=extmap:3 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=sendrecv
a=msid:iUezVKFxpUtCWz7QMIaaBz6G4EjOigfQkaJ9 1419f6a5-ad99-4f2d-b29f-854442525057
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
// packetization-mode=1 RTP打包方式,见:https://blog.csdn.net/jwybobo2007/article/details/7240533
a=fmtp:102 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f;x-google-max-bitrate=1800;x-google-min-bitrate=900;x-google-start-bitrate=900
a=rtpmap:122 rtx/90000
a=fmtp:122 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:121 rtx/90000
a=fmtp:121 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 H264/90000
a=rtcp-fb:124 goog-remb
a=rtcp-fb:124 transport-cc
a=rtcp-fb:124 ccm fir
a=rtcp-fb:124 nack
a=rtcp-fb:124 nack pli
a=fmtp:124 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=4d0032
a=rtpmap:120 rtx/90000
a=fmtp:120 apt=124
a=rtpmap:123 H264/90000
a=rtcp-fb:123 goog-remb
a=rtcp-fb:123 transport-cc
a=rtcp-fb:123 ccm fir
a=rtcp-fb:123 nack
a=rtcp-fb:123 nack pli
a=fmtp:123 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=640032
a=rtpmap:119 rtx/90000
a=fmtp:119 apt=123
a=rtpmap:114 red/90000
a=rtpmap:115 rtx/90000
a=fmtp:115 apt=114
a=rtpmap:116 ulpfec/90000
a=ssrc-group:FID 3362736443 2930270346
a=ssrc:3362736443 cname:UvuYuIsugaM69ery
a=ssrc:3362736443 msid:iUezVKFxpUtCWz7QMIaaBz6G4EjOigfQkaJ9 1419f6a5-ad99-4f2d-b29f-854442525057
a=ssrc:3362736443 mslabel:iUezVKFxpUtCWz7QMIaaBz6G4EjOigfQkaJ9
a=ssrc:3362736443 label:1419f6a5-ad99-4f2d-b29f-854442525057
a=ssrc:2930270346 cname:UvuYuIsugaM69ery
a=ssrc:2930270346 msid:iUezVKFxpUtCWz7QMIaaBz6G4EjOigfQkaJ9 1419f6a5-ad99-4f2d-b29f-854442525057
a=ssrc:2930270346 mslabel:iUezVKFxpUtCWz7QMIaaBz6G4EjOigfQkaJ9
a=ssrc:2930270346 label:1419f6a5-ad99-4f2d-b29f-854442525057