mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-10-05 15:57:03 +08:00
调试rtmp插件
This commit is contained in:
35
main.go
35
main.go
@@ -9,26 +9,29 @@ import (
|
||||
"path/filepath"
|
||||
"syscall"
|
||||
|
||||
. "github.com/Monibuca/engine/v3"
|
||||
// _ "github.com/Monibuca/plugin-ffmpeg"
|
||||
// _ "github.com/Monibuca/plugin-cluster"
|
||||
_ "github.com/Monibuca/plugin-gateway/v3"
|
||||
. "github.com/Monibuca/engine/v4"
|
||||
_ "github.com/mkevac/debugcharts"
|
||||
|
||||
_ "github.com/Monibuca/plugin-gb28181/v3"
|
||||
_ "github.com/Monibuca/plugin-hdl/v3"
|
||||
_ "github.com/Monibuca/plugin-hls/v3"
|
||||
_ "github.com/Monibuca/plugin-jessica/v3"
|
||||
_ "github.com/Monibuca/plugin-logrotate/v3"
|
||||
_ "github.com/Monibuca/plugin-record/v3"
|
||||
_ "github.com/Monibuca/plugin-rtmp/v3"
|
||||
_ "github.com/Monibuca/plugin-rtsp/v3"
|
||||
_ "github.com/Monibuca/plugin-summary"
|
||||
_ "github.com/Monibuca/plugin-ts/v3"
|
||||
_ "github.com/Monibuca/plugin-webrtc/v3"
|
||||
//_ "github.com/Monibuca/plugin-ffmpeg"
|
||||
// _ "github.com/Monibuca/plugin-cluster"
|
||||
// _ "github.com/Monibuca/plugin-gateway/v3"
|
||||
|
||||
// _ "github.com/Monibuca/plugin-gb28181/v3"
|
||||
// _ "github.com/Monibuca/plugin-hdl/v4"
|
||||
// _ "github.com/Monibuca/plugin-hls/v4"
|
||||
|
||||
// _ "github.com/Monibuca/plugin-jessica/v3"
|
||||
// _ "github.com/Monibuca/plugin-logrotate/v3"
|
||||
// _ "github.com/Monibuca/plugin-record/v3"
|
||||
_ "github.com/Monibuca/plugin-rtmp/v4"
|
||||
// _ "github.com/Monibuca/plugin-rtsp/v3"
|
||||
// _ "github.com/Monibuca/plugin-summary"
|
||||
// _ "github.com/Monibuca/plugin-ts/v3"
|
||||
// _ "github.com/Monibuca/plugin-webrtc/v3"
|
||||
)
|
||||
|
||||
func main() {
|
||||
addr := flag.String("c", "config.toml", "config file")
|
||||
addr := flag.String("c", "config.yaml", "config file")
|
||||
flag.Parse()
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
go waiter(cancel)
|
||||
|
Reference in New Issue
Block a user