mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2024-12-22 20:52:20 +00:00
Ascii is a known keyword, must be in capital letters
This commit is contained in:
parent
727865f444
commit
4db102c384
@ -116,8 +116,8 @@ func asciiChar(pixel byte) string {
|
|||||||
return asciiChars[(255-pixel)/22]
|
return asciiChars[(255-pixel)/22]
|
||||||
}
|
}
|
||||||
|
|
||||||
// ServeAsciiArt send all packets received by ffmpeg as ASCII Art to telnet clients
|
// StartASCIIArtStream send all packets received by ffmpeg as ASCII Art to telnet clients
|
||||||
func ServeAsciiArt(streamID string, reader io.ReadCloser) {
|
func StartASCIIArtStream(streamID string, reader io.ReadCloser) {
|
||||||
if !Cfg.Enabled {
|
if !Cfg.Enabled {
|
||||||
_ = reader.Close()
|
_ = reader.Close()
|
||||||
return
|
return
|
||||||
|
@ -79,7 +79,7 @@ func ingestFrom(inputChannel chan srt.Packet) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
go telnet.ServeAsciiArt(srtPacket.StreamName, output)
|
go telnet.StartASCIIArtStream(srtPacket.StreamName, output)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := ffmpeg.Start(); err != nil {
|
if err := ffmpeg.Start(); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user