mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 23:26:54 +08:00
support generic tracks with multiple formats (https://github.com/aler9/rtsp-simple-server/issues/1103)
This commit is contained in:
@@ -246,10 +246,14 @@ func TestClientRead(t *testing.T) {
|
||||
require.Equal(t, mustParseURL(scheme+"://"+listenIP+":8554/test/stream?param=value"), req.URL)
|
||||
|
||||
track := &TrackGeneric{
|
||||
Media: "application",
|
||||
Formats: []string{"97"},
|
||||
RTPMap: "97 private/90000",
|
||||
Media: "application",
|
||||
Payloads: []TrackGenericPayload{{
|
||||
Type: 97,
|
||||
RTPMap: "97 private/90000",
|
||||
}},
|
||||
}
|
||||
err = track.Init()
|
||||
require.NoError(t, err)
|
||||
|
||||
tracks := Tracks{track}
|
||||
tracks.setControls()
|
||||
|
Reference in New Issue
Block a user