mirror of
https://github.com/owncast/owncast.git
synced 2024-11-25 06:12:23 +03:00
769fc3a561
Co-authored-by: Michael Leow <mleow@moneylion.com>
14 lines
351 B
Go
14 lines
351 B
Go
package ffmpeg
|
|
|
|
import (
|
|
"github.com/owncast/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()
|
|
}
|