mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-09-27 03:25:56 +08:00
22 lines
542 B
Go
22 lines
542 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
"m7s.live/m7s/v5"
|
|
_ "m7s.live/m7s/v5/plugin/console"
|
|
_ "m7s.live/m7s/v5/plugin/debug"
|
|
_ "m7s.live/m7s/v5/plugin/flv"
|
|
_ "m7s.live/m7s/v5/plugin/logrotate"
|
|
_ "m7s.live/m7s/v5/plugin/rtmp"
|
|
_ "m7s.live/m7s/v5/plugin/rtsp"
|
|
_ "m7s.live/m7s/v5/plugin/stress"
|
|
_ "m7s.live/m7s/v5/plugin/webrtc"
|
|
)
|
|
|
|
func main() {
|
|
ctx := context.Background()
|
|
// ctx, _ := context.WithDeadline(context.Background(), time.Now().Add(time.Second*100))
|
|
go m7s.Run(ctx, "config1.yaml")
|
|
m7s.NewServer().Run(ctx, "config2.yaml")
|
|
}
|