mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-03 11:22:37 +02:00
change dissconnect messages to keys for i18n
This commit is contained in:
parent
a04ac47812
commit
5da903f3fe
4 changed files with 15 additions and 12 deletions
|
@ -2,6 +2,7 @@ package broadcast
|
|||
|
||||
import (
|
||||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
"n.eko.moe/neko/internal/gst"
|
||||
"n.eko.moe/neko/internal/types/config"
|
||||
)
|
||||
|
@ -14,8 +15,8 @@ type BroadcastManager struct {
|
|||
|
||||
func New(config *config.Broadcast) *BroadcastManager {
|
||||
return &BroadcastManager{
|
||||
logger: log.With().Str("module", "remote").Logger(),
|
||||
config: config
|
||||
logger: log.With().Str("module", "remote").Logger(),
|
||||
config: config,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -28,13 +29,15 @@ func (manager *BroadcastManager) Start() {
|
|||
)
|
||||
if err != nil {
|
||||
manager.logger.Panic().Err(err).Msg("unable to create rtmp pipeline")
|
||||
}
|
||||
}
|
||||
|
||||
manager.pipeline.Start()
|
||||
manager.pipeline.Start()
|
||||
}
|
||||
|
||||
func (manager *BroadcastManager) Shutdown() error {
|
||||
if (manager.pipeline != nil) {
|
||||
manager.pipeline.Stop()
|
||||
}
|
||||
if manager.pipeline != nil {
|
||||
manager.pipeline.Stop()
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue