mirror of
https://github.com/owncast/owncast.git
synced 2024-12-24 18:18:24 +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)
|
|
}()
|
|
}
|