2020-10-18 14:14:08 +00:00
|
|
|
// Package transcoder manages transcoders
|
2020-10-17 17:40:37 +00:00
|
|
|
package transcoder
|
|
|
|
|
|
|
|
import (
|
|
|
|
"gitlab.crans.org/nounous/ghostream/stream"
|
2020-10-18 19:46:36 +00:00
|
|
|
"gitlab.crans.org/nounous/ghostream/transcoder/audio"
|
2020-10-17 17:40:37 +00:00
|
|
|
"gitlab.crans.org/nounous/ghostream/transcoder/text"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Options holds text package configuration
|
|
|
|
type Options struct {
|
2020-10-18 19:46:36 +00:00
|
|
|
Text text.Options
|
|
|
|
Audio audio.Options
|
2020-10-17 17:40:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Init all transcoders
|
|
|
|
func Init(streams map[string]*stream.Stream, cfg *Options) {
|
|
|
|
go text.Init(streams, &cfg.Text)
|
2020-10-18 19:46:36 +00:00
|
|
|
go audio.Init(streams, &cfg.Audio)
|
2020-10-17 17:40:37 +00:00
|
|
|
}
|