|
@@ -69,6 +69,31 @@ const plainVideoMLineSdp = "" +
|
69
|
69
|
"a=ssrc:1757014965 cname:peDGrDD6WsxUOki/\r\n" +
|
70
|
70
|
"a=rtcp-mux\r\n";
|
71
|
71
|
|
|
72
|
+// A basic sdp video mline with a single stream and multiple codecs
|
|
73
|
+const multiCodecVideoMLine = "" +
|
|
74
|
+"m=video 9 RTP/SAVPF 100 126 97\r\n" +
|
|
75
|
+"c=IN IP4 0.0.0.0\r\n" +
|
|
76
|
+"a=rtpmap:100 VP8/90000\r\n" +
|
|
77
|
+"a=rtpmap:126 H264/90000\r\n" +
|
|
78
|
+"a=rtpmap:97 H264/90000\r\n" +
|
|
79
|
+"a=rtcp:9 IN IP4 0.0.0.0\r\n" +
|
|
80
|
+"a=rtcp-fb:100 ccm fir\r\n" +
|
|
81
|
+"a=rtcp-fb:100 nack\r\n" +
|
|
82
|
+"a=rtcp-fb:100 nack pli\r\n" +
|
|
83
|
+"a=rtcp-fb:100 goog-remb\r\n" +
|
|
84
|
+"a=fmtp:126 profile-level-id=42e01f;level-asymmetry-allowed=1;packetization-mode=1\r\n" +
|
|
85
|
+"a=fmtp:97 profile-level-id=42e01f;level-asymmetry-allowed=1\r\n" +
|
|
86
|
+"a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\n" +
|
|
87
|
+"a=setup:passive\r\n" +
|
|
88
|
+"a=mid:video\r\n" +
|
|
89
|
+"a=sendrecv\r\n" +
|
|
90
|
+"a=ice-ufrag:adPg\r\n" +
|
|
91
|
+"a=ice-pwd:Xsr05Mq8S7CR44DAnusZE26F\r\n" +
|
|
92
|
+"a=fingerprint:sha-256 6A:39:DE:11:24:AD:2E:4E:63:D6:69:D3:85:05:53:C7:3C:38:A4:B7:91:74:C0:91:44:FC:94:63:7F:01:AB:A9\r\n" +
|
|
93
|
+"a=ssrc:1757014965 msid:0836cc8e-a7bb-47e9-affb-0599414bc56d bdbd2c0a-7959-4578-8db5-9a6a1aec4ecf\r\n" +
|
|
94
|
+"a=ssrc:1757014965 cname:peDGrDD6WsxUOki/\r\n" +
|
|
95
|
+"a=rtcp-mux\r\n";
|
|
96
|
+
|
72
|
97
|
// An sdp video mline with 3 simulcast streams
|
73
|
98
|
const simulcastVideoMLineSdp = "" +
|
74
|
99
|
"m=video 9 RTP/SAVPF 100\r\n" +
|
|
@@ -165,10 +190,13 @@ const simulcastRtxSdpStr = baseSessionSdp + baseAudioMLineSdp + simulcastRtxVide
|
165
|
190
|
const plainVideoSdpStr = baseSessionSdp + baseAudioMLineSdp + plainVideoMLineSdp + baseDataMLineSdp;
|
166
|
191
|
// A full sdp string representing a client doing a single video stream with rtx
|
167
|
192
|
const rtxVideoSdpStr = baseSessionSdp + baseAudioMLineSdp + rtxVideoMLineSdp + baseDataMLineSdp;
|
|
193
|
+// A full sdp string representing a client doing a single video stream with multiple codec options
|
|
194
|
+const multiCodecVideoSdpStr = baseSessionSdp + baseAudioMLineSdp + multiCodecVideoMLine + baseDataMLineSdp;
|
168
|
195
|
|
169
|
196
|
export const simulcastSdp = transform.parse(simulcastSdpStr);
|
170
|
197
|
export const simulcastRtxSdp = transform.parse(simulcastRtxSdpStr);
|
171
|
198
|
export const plainVideoSdp = transform.parse(plainVideoSdpStr);
|
172
|
199
|
export const rtxVideoSdp = transform.parse(rtxVideoSdpStr);
|
|
200
|
+export const multiCodecVideoSdp = transform.parse(multiCodecVideoSdpStr);
|
173
|
201
|
|
174
|
202
|
/*eslint-enable max-len*/
|