1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2025-06-27 11:28:51 +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

@ -59,11 +59,11 @@ func TestForwardStream(t *testing.T) {
go Serve(forwardingList, forwardingChannel)
// Serve HTTP Server
go srt.Serve(&srt.Options{ListenAddress: ":9712", MaxClients: 2}, forwardingChannel)
go srt.Serve(&srt.Options{ListenAddress: ":9712", MaxClients: 2}, nil, forwardingChannel)
ffmpeg := exec.Command("ffmpeg",
"-re", "-f", "lavfi", "-i", "testsrc=size=640x480:rate=10",
"-f", "flv", "srt://127.0.0.1:9712")
"-f", "flv", "srt://127.0.0.1:9712?streamid=demo|")
output, err := ffmpeg.StdoutPipe()
errOutput, err := ffmpeg.StderrPipe()