2020-06-23 04:11:56 +03:00
|
|
|
package ffmpeg
|
2020-05-30 04:08:33 +03:00
|
|
|
|
|
|
|
import (
|
2020-06-23 04:11:56 +03:00
|
|
|
"github.com/gabek/owncast/config"
|
2020-05-30 04:08:33 +03:00
|
|
|
)
|
|
|
|
|
2020-06-23 04:11:56 +03:00
|
|
|
//ShowStreamOfflineState generates and shows the stream's offline state
|
2020-06-26 03:44:47 +03:00
|
|
|
func ShowStreamOfflineState() {
|
|
|
|
transcoder := NewTranscoder()
|
|
|
|
transcoder.SetSegmentLength(10)
|
|
|
|
transcoder.SetAppendToStream(true)
|
2020-07-14 01:13:24 +03:00
|
|
|
transcoder.SetInput(config.Config.GetOfflineContentPath())
|
2020-06-26 03:44:47 +03:00
|
|
|
transcoder.Start()
|
2020-05-30 04:08:33 +03:00
|
|
|
}
|