add TrackVP8

This commit is contained in:
aler9
2022-06-28 12:10:30 +02:00
parent f3b0fc69b4
commit ef900359ce
4 changed files with 221 additions and 0 deletions

View File

@@ -385,6 +385,37 @@ func TestTrackNewFromMediaDescription(t *testing.T) {
},
},
},
{
"vp8",
&psdp.MediaDescription{
MediaName: psdp.MediaName{
Media: "video",
Protos: []string{"RTP", "AVP"},
Formats: []string{"96"},
},
Attributes: []psdp.Attribute{
{
Key: "rtpmap",
Value: "96 VP8/90000",
},
{
Key: "fmtp",
Value: "96 max-fr=123;max-fs=456",
},
},
},
&TrackVP8{
PayloadType: 96,
MaxFR: func() *int {
v := 123
return &v
}(),
MaxFS: func() *int {
v := 456
return &v
}(),
},
},
{
"vp9",
&psdp.MediaDescription{