mirror of
https://github.com/aler9/gortsplib
synced 2025-10-12 18:40:07 +08:00
add TrackJPEG
This commit is contained in:
@@ -31,7 +31,6 @@ func TestTrackNewFromMediaDescription(t *testing.T) {
|
||||
&psdp.MediaDescription{
|
||||
MediaName: psdp.MediaName{
|
||||
Media: "audio",
|
||||
Port: psdp.RangedPort{Value: 49170},
|
||||
Protos: []string{"RTP", "AVP"},
|
||||
Formats: []string{"0"},
|
||||
},
|
||||
@@ -192,6 +191,17 @@ func TestTrackNewFromMediaDescription(t *testing.T) {
|
||||
channelCount: 2,
|
||||
},
|
||||
},
|
||||
{
|
||||
"jpeg",
|
||||
&psdp.MediaDescription{
|
||||
MediaName: psdp.MediaName{
|
||||
Media: "video",
|
||||
Protos: []string{"RTP", "AVP"},
|
||||
Formats: []string{"26"},
|
||||
},
|
||||
},
|
||||
&TrackJPEG{},
|
||||
},
|
||||
{
|
||||
"h264",
|
||||
&psdp.MediaDescription{
|
||||
@@ -343,7 +353,6 @@ func TestTrackNewFromMediaDescription(t *testing.T) {
|
||||
&psdp.MediaDescription{
|
||||
MediaName: psdp.MediaName{
|
||||
Media: "video",
|
||||
Port: psdp.RangedPort{Value: 0},
|
||||
Protos: []string{"RTP", "AVP"},
|
||||
Formats: []string{"98", "96"},
|
||||
},
|
||||
|
Reference in New Issue
Block a user