mirror of
https://github.com/Monibuca/v5.git
synced 2025-10-07 08:41:00 +08:00
20 lines
404 B
Go
20 lines
404 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
"time"
|
|
|
|
"m7s.live/m7s/v5"
|
|
_ "m7s.live/m7s/v5/plugin/debug"
|
|
_ "m7s.live/m7s/v5/plugin/hdl"
|
|
_ "m7s.live/m7s/v5/plugin/rtmp"
|
|
)
|
|
|
|
func main() {
|
|
ctx := context.Background()
|
|
// ctx, _ := context.WithDeadline(context.Background(), time.Now().Add(time.Second*100))
|
|
go m7s.Run(ctx, "config1.yaml")
|
|
time.Sleep(time.Second * 10)
|
|
m7s.NewServer().Run(ctx, "config2.yaml")
|
|
}
|