mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2025-06-29 12:10:54 +02:00
Authenticate streams
This commit is contained in:
@ -36,11 +36,11 @@ func TestServeSRT(t *testing.T) {
|
||||
t.Skip("WARNING: FFMPEG is not installed. Skipping stream test")
|
||||
}
|
||||
|
||||
go Serve(&Options{ListenAddress: ":9711", MaxClients: 2}, nil)
|
||||
go Serve(&Options{ListenAddress: ":9711", MaxClients: 2}, nil, nil)
|
||||
|
||||
ffmpeg := exec.Command("ffmpeg",
|
||||
"-i", "http://ftp.crans.org/events/Blender%20OpenMovies/big_buck_bunny_480p_stereo.ogg",
|
||||
"-f", "flv", "srt://127.0.0.1:9711")
|
||||
"-f", "flv", "srt://127.0.0.1:9711??streamid=demo|")
|
||||
|
||||
output, err := ffmpeg.StdoutPipe()
|
||||
errOutput, err := ffmpeg.StderrPipe()
|
||||
|
Reference in New Issue
Block a user