15 lines
349 B
Go
15 lines
349 B
Go
package ffmpeg
|
|
|
|
import (
|
|
"github.com/gabek/owncast/config"
|
|
)
|
|
|
|
//ShowStreamOfflineState generates and shows the stream's offline state
|
|
func ShowStreamOfflineState() {
|
|
transcoder := NewTranscoder()
|
|
transcoder.SetSegmentLength(10)
|
|
transcoder.SetAppendToStream(true)
|
|
transcoder.SetInput(config.Config.GetOfflineContentPath())
|
|
transcoder.Start()
|
|
}
|