From 378f071e2ce1b43d1b762e3b2a30c975312f6259 Mon Sep 17 00:00:00 2001 From: Alexey Khit Date: Mon, 1 May 2023 12:55:32 +0300 Subject: [PATCH] Add go2rtc_rtsp app --- cmd/go2rtc_rtsp/main.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 cmd/go2rtc_rtsp/main.go diff --git a/cmd/go2rtc_rtsp/main.go b/cmd/go2rtc_rtsp/main.go new file mode 100644 index 00000000..2babffab --- /dev/null +++ b/cmd/go2rtc_rtsp/main.go @@ -0,0 +1,23 @@ +package main + +import ( + "github.com/AlexxIT/go2rtc/internal/app" + "github.com/AlexxIT/go2rtc/internal/rtsp" + "github.com/AlexxIT/go2rtc/internal/streams" + "os" + "os/signal" + "syscall" +) + +func main() { + app.Init() + streams.Init() + + rtsp.Init() + + sigs := make(chan os.Signal, 1) + signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM) + <-sigs + + println("exit OK") +}