mirror of
https://github.com/aler9/gortsplib
synced 2025-11-01 19:12:37 +08:00
add TrackVP9
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user