mirror of
https://github.com/owncast/owncast.git
synced 2024-11-27 17:59:21 +03:00
4ba36c17a3
- Persist segments - Record configurations - Rebuild entire stream playlists - First steps to working towards https://github.com/owncast/owncast/issues/102
26 lines
529 B
Go
26 lines
529 B
Go
package core
|
|
|
|
import (
|
|
"io"
|
|
|
|
"github.com/owncast/owncast/core/transcoder"
|
|
)
|
|
|
|
func setupVideoComponentsForId(streamId string) {
|
|
}
|
|
|
|
func setupLiveTranscoderForId(streamId string, rtmpOut *io.PipeReader) {
|
|
_storage.SetStreamId(streamId)
|
|
handler.SetStreamId(streamId)
|
|
|
|
go func() {
|
|
_transcoder = transcoder.NewTranscoder(streamId)
|
|
_transcoder.TranscoderCompleted = func(error) {
|
|
SetStreamAsDisconnected()
|
|
_transcoder = nil
|
|
_currentBroadcast = nil
|
|
}
|
|
_transcoder.SetStdin(rtmpOut)
|
|
_transcoder.Start(true)
|
|
}()
|
|
}
|