add TrackVP9

This commit is contained in:
aler9
2022-06-23 11:20:28 +02:00
parent a820d95649
commit 04d78ec414
4 changed files with 252 additions and 0 deletions

View File

@@ -381,6 +381,25 @@ func TestTrackNewFromMediaDescription(t *testing.T) {
},
},
},
{
"vp9",
&psdp.MediaDescription{
MediaName: psdp.MediaName{
Media: "video",
Protos: []string{"RTP", "AVP"},
Formats: []string{"96"},
},
Attributes: []psdp.Attribute{
{
Key: "rtpmap",
Value: "96 VP9/90000",
},
},
},
&TrackVP9{
payloadType: 96,
},
},
{
"multiple formats",
&psdp.MediaDescription{