Skip to content

Commit

Permalink
Revert "Add test for ssrc-group after ssrc"
Browse files Browse the repository at this point in the history
This reverts commit 88d8eef.
  • Loading branch information
aalekseevx committed Apr 19, 2024
1 parent 8305427 commit ebb9331
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions sdp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,42 +271,6 @@ func TestTrackDetailsFromSDP(t *testing.T) {
}
assert.Equal(t, 0, len(trackDetailsFromSDP(nil, s)))
})

t.Run("ssrc-group after ssrc", func(t *testing.T) {
s := &sdp.SessionDescription{
MediaDescriptions: []*sdp.MediaDescription{
{
MediaName: sdp.MediaName{
Media: "video",
},
Attributes: []sdp.Attribute{
{Key: "mid", Value: "0"},
{Key: "sendrecv"},
{Key: "ssrc", Value: "3000 msid:video_trk_label video_trk_guid"},
{Key: "ssrc", Value: "4000 msid:rtx_trk_label rtx_trck_guid"},
{Key: "ssrc-group", Value: "FID 3000 4000"},
},
},
{
MediaName: sdp.MediaName{
Media: "video",
},
Attributes: []sdp.Attribute{
{Key: "mid", Value: "1"},
{Key: "sendrecv"},
{Key: "ssrc-group", Value: "FID 5000 6000"},
{Key: "ssrc", Value: "5000 msid:video_trk_label video_trk_guid"},
{Key: "ssrc", Value: "6000 msid:rtx_trk_label rtx_trck_guid"},
},
},
},
}

tracks := trackDetailsFromSDP(nil, s)
assert.Equal(t, 2, len(tracks))
assert.Equal(t, SSRC(4000), *tracks[0].repairSsrc)
assert.Equal(t, SSRC(6000), *tracks[1].repairSsrc)
})
}

func TestHaveApplicationMediaSection(t *testing.T) {
Expand Down

0 comments on commit ebb9331

Please sign in to comment.