Add support source Bubble (Eseenet/dvr163)

This commit is contained in:
Alexey Khit
2023-07-15 11:46:10 +03:00
parent d272d4b6c3
commit 5c93dc62bd
4 changed files with 341 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
package bubble
import (
"github.com/AlexxIT/go2rtc/internal/streams"
"github.com/AlexxIT/go2rtc/pkg/bubble"
"github.com/AlexxIT/go2rtc/pkg/core"
)
func Init() {
streams.HandleFunc("bubble", handle)
}
func handle(url string) (core.Producer, error) {
conn := bubble.NewClient(url)
if err := conn.Dial(); err != nil {
return nil, err
}
return conn, nil
}