mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-10-27 09:40:27 +08:00
allow using MTX_QUERY inside source (#3486)
this allows to pass query parameters to sources, for instance: source: rtsp://my_host/my_path?$MTX_QUERY sourceOnDemand: true
This commit is contained in:
@@ -121,11 +121,11 @@ func TestSource(t *testing.T) {
|
||||
te := test.NewSourceTester(
|
||||
func(p defs.StaticSourceParent) defs.StaticSource {
|
||||
return &Source{
|
||||
ResolvedSource: "whep://localhost:9003/my/resource",
|
||||
ReadTimeout: conf.StringDuration(10 * time.Second),
|
||||
Parent: p,
|
||||
ReadTimeout: conf.StringDuration(10 * time.Second),
|
||||
Parent: p,
|
||||
}
|
||||
},
|
||||
"whep://localhost:9003/my/resource",
|
||||
&conf.Path{},
|
||||
)
|
||||
defer te.Close()
|
||||
|
||||
Reference in New Issue
Block a user