|
@@ -290,16 +290,19 @@ describe ("RtxModifier", function() {
|
290
|
290
|
|
291
|
291
|
describe("stripRtx", function() {
|
292
|
292
|
beforeEach(function() {
|
293
|
|
- this.sdpStr = transform.write(SampleSdpStrings.rtxVideoSdp);
|
294
|
293
|
});
|
295
|
294
|
it ("should strip all rtx streams from an sdp with rtx", function() {
|
296
|
|
- const newSdpStr = this.rtxModifier.stripRtx(this.sdpStr);
|
|
295
|
+ const sdpStr = transform.write(SampleSdpStrings.rtxVideoSdp);
|
|
296
|
+ const newSdpStr = this.rtxModifier.stripRtx(sdpStr);
|
297
|
297
|
const newSdp = transform.parse(newSdpStr);
|
298
|
298
|
const fidGroups = getVideoGroups(newSdp, "FID");
|
299
|
299
|
expect(fidGroups.length).toEqual(0);
|
300
|
|
- const videoMLine = SDPUtil.getMedia(newSdp, "video");
|
301
|
|
- expect(videoMLine.ssrcs.length).toEqual(1);
|
302
|
|
-
|
|
300
|
+ expect(numVideoSsrcs(newSdp)).toEqual(1);
|
|
301
|
+ });
|
|
302
|
+ it ("should do nothing to an sdp with no rtx", function() {
|
|
303
|
+ const sdpStr = transform.write(SampleSdpStrings.plainVideoSdp);
|
|
304
|
+ const newSdpStr = this.rtxModifier.stripRtx(sdpStr);
|
|
305
|
+ expect(newSdpStr).toEqual(sdpStr);
|
303
|
306
|
});
|
304
|
307
|
});
|
305
|
308
|
});
|