mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
client: simplify Setup()
This commit is contained in:
@@ -5,7 +5,6 @@ import (
|
||||
|
||||
"github.com/aler9/gortsplib"
|
||||
"github.com/aler9/gortsplib/pkg/base"
|
||||
"github.com/aler9/gortsplib/pkg/headers"
|
||||
"github.com/aler9/gortsplib/pkg/rtph264"
|
||||
"github.com/pion/rtp"
|
||||
)
|
||||
@@ -85,7 +84,7 @@ func main() {
|
||||
|
||||
// setup all tracks
|
||||
for _, t := range tracks {
|
||||
_, err := c.Setup(headers.TransportModePlay, baseURL, t, 0, 0)
|
||||
_, err := c.Setup(true, baseURL, t, 0, 0)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user