diff --git a/stream/telnet/telnet.go b/stream/telnet/telnet.go index b955f5c..8f7c09f 100644 --- a/stream/telnet/telnet.go +++ b/stream/telnet/telnet.go @@ -116,8 +116,8 @@ func asciiChar(pixel byte) string { return asciiChars[(255-pixel)/22] } -// ServeAsciiArt send all packets received by ffmpeg as ASCII Art to telnet clients -func ServeAsciiArt(streamID string, reader io.ReadCloser) { +// StartASCIIArtStream send all packets received by ffmpeg as ASCII Art to telnet clients +func StartASCIIArtStream(streamID string, reader io.ReadCloser) { if !Cfg.Enabled { _ = reader.Close() return diff --git a/stream/webrtc/ingest.go b/stream/webrtc/ingest.go index 37c4654..5f336d6 100644 --- a/stream/webrtc/ingest.go +++ b/stream/webrtc/ingest.go @@ -79,7 +79,7 @@ func ingestFrom(inputChannel chan srt.Packet) { if err != nil { panic(err) } - go telnet.ServeAsciiArt(srtPacket.StreamName, output) + go telnet.StartASCIIArtStream(srtPacket.StreamName, output) } if err := ffmpeg.Start(); err != nil {