You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
529 B
26 lines
529 B
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) |
|
}() |
|
}
|
|
|