mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-10-21 22:19:26 +08:00
31 lines
607 B
Go
31 lines
607 B
Go
package main
|
|
|
|
//go:generate go run gen.go $debug
|
|
|
|
import (
|
|
"context"
|
|
"flag"
|
|
|
|
"m7s.live/engine/v4"
|
|
"m7s.live/engine/v4/util"
|
|
|
|
_ "m7s.live/plugin/debug/v4"
|
|
_ "m7s.live/plugin/hdl/v4"
|
|
_ "m7s.live/plugin/hls/v4"
|
|
_ "m7s.live/plugin/jessica/v4"
|
|
_ "m7s.live/plugin/logrotate/v4"
|
|
|
|
// _ "m7s.live/plugin/record/v4"
|
|
_ "m7s.live/plugin/rtmp/v4"
|
|
_ "m7s.live/plugin/rtsp/v4"
|
|
_ "m7s.live/plugin/webtransport/v4"
|
|
)
|
|
|
|
func main() {
|
|
conf := flag.String("c", "config.yaml", "config file")
|
|
flag.Parse()
|
|
ctx, cancel := context.WithCancel(context.Background())
|
|
go util.WaitTerm(cancel)
|
|
engine.Run(ctx, *conf)
|
|
}
|