2020-06-22 20:11:56 -05:00
|
|
|
package ffmpeg
|
2020-05-29 18:08:33 -07:00
|
|
|
|
|
|
|
import (
|
2020-06-22 20:11:56 -05:00
|
|
|
"github.com/gabek/owncast/config"
|
2020-05-29 18:08:33 -07:00
|
|
|
)
|
|
|
|
|
2020-06-22 20:11:56 -05:00
|
|
|
//ShowStreamOfflineState generates and shows the stream's offline state
|
2020-06-25 17:44:47 -07:00
|
|
|
func ShowStreamOfflineState() {
|
|
|
|
transcoder := NewTranscoder()
|
|
|
|
transcoder.SetSegmentLength(10)
|
|
|
|
transcoder.SetAppendToStream(true)
|
2020-07-13 15:13:24 -07:00
|
|
|
transcoder.SetInput(config.Config.GetOfflineContentPath())
|
2020-06-25 17:44:47 -07:00
|
|
|
transcoder.Start()
|
2020-05-29 18:08:33 -07:00
|
|
|
}
|