mirror of https://github.com/synctv-org/synctv
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
329 B
Go
16 lines
329 B
Go
package bootstrap
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/synctv-org/synctv/internal/conf"
|
|
"github.com/synctv-org/synctv/internal/rtmp"
|
|
rtmps "github.com/zijiren233/livelib/server"
|
|
)
|
|
|
|
func InitRtmp(ctx context.Context) error {
|
|
s := rtmps.NewRtmpServer(rtmps.WithInitHlsPlayer(conf.Conf.Rtmp.HlsPlayer))
|
|
rtmp.Init(s)
|
|
return nil
|
|
}
|