mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-10-15 12:10:55 +08:00
This allows to proxy requests to other servers by using regular expressions.
This commit is contained in:
@@ -6,7 +6,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/bluenviron/mediacommon/pkg/formats/mpegts"
|
||||
"github.com/datarhei/gosrt"
|
||||
srt "github.com/datarhei/gosrt"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/bluenviron/mediamtx/internal/conf"
|
||||
@@ -59,13 +59,12 @@ func TestSource(t *testing.T) {
|
||||
te := tester.New(
|
||||
func(p defs.StaticSourceParent) defs.StaticSource {
|
||||
return &Source{
|
||||
ReadTimeout: conf.StringDuration(10 * time.Second),
|
||||
Parent: p,
|
||||
ResolvedSource: "srt://localhost:9002?streamid=sidname&passphrase=ttest1234567",
|
||||
ReadTimeout: conf.StringDuration(10 * time.Second),
|
||||
Parent: p,
|
||||
}
|
||||
},
|
||||
&conf.Path{
|
||||
Source: "srt://localhost:9002?streamid=sidname&passphrase=ttest1234567",
|
||||
},
|
||||
&conf.Path{},
|
||||
)
|
||||
defer te.Close()
|
||||
|
||||
|
Reference in New Issue
Block a user