From 45ae949b42ba75c8cfd1f70de6cb18fd28d16c85 Mon Sep 17 00:00:00 2001 From: cnderrauber Date: Wed, 17 Jul 2024 10:50:13 +0800 Subject: [PATCH] Remove multicodec test Remote multicodec test --- mediaengine_test.go | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/mediaengine_test.go b/mediaengine_test.go index c895e850f43..33b9d4d96ff 100644 --- a/mediaengine_test.go +++ b/mediaengine_test.go @@ -453,40 +453,6 @@ a=fmtp:97 apt=96 _, _, err := m.getCodecByPayload(97) assert.ErrorIs(t, err, ErrCodecNotFound) }) - - t.Run("Multiple codecs same kind", func(t *testing.T) { - const mixedCodecs = `v=0 -o=- 4596489990601351948 2 IN IP4 127.0.0.1 -s=- -t=0 0 -m=video 60323 UDP/TLS/RTP/SAVPF 96 -a=rtpmap:96 VP9/90000 -m=video 60323 UDP/TLS/RTP/SAVPF 94 -a=rtpmap:94 VP8/90000 -` - m := MediaEngine{} - assert.NoError(t, m.RegisterCodec(RTPCodecParameters{ - RTPCodecCapability: RTPCodecCapability{MimeTypeVP8, 90000, 0, "", nil}, - PayloadType: 94, - }, RTPCodecTypeVideo)) - assert.NoError(t, m.RegisterCodec(RTPCodecParameters{ - RTPCodecCapability: RTPCodecCapability{MimeTypeVP9, 90000, 0, "", nil}, - PayloadType: 96, - }, RTPCodecTypeVideo)) - - assert.NoError(t, m.updateFromRemoteDescription(mustParse(mixedCodecs))) - assert.True(t, m.negotiatedVideo) - - vp8Codec, _, err := m.getCodecByPayload(94) - assert.NoError(t, err) - assert.Equal(t, vp8Codec.MimeType, MimeTypeVP8) - - vp9Codec, _, err := m.getCodecByPayload(96) - assert.NoError(t, err) - assert.Equal(t, vp9Codec.MimeType, MimeTypeVP9) - - }) - } func TestMediaEngineHeaderExtensionDirection(t *testing.T) {