1
0
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:
Yohann D'ANELLO
2020-10-01 23:31:14 +02:00
parent b5338e06bc
commit 0371d3dc7c
4 changed files with 42 additions and 12 deletions

View File

@ -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()