mirror of
https://github.com/owncast/owncast.git
synced 2024-11-26 23:19:23 +03:00
14 lines
349 B
Go
14 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()
|
|
}
|