install go2rtc on bob

This commit is contained in:
julien committed 2026-04-04 19:36:14 +02:00
1 parent f0b56e63d1
commit ccf88187b8
537 files changed
+69213

No files matched your search

@@ -0,0 +1,23 @@
package xiaomi
import (
"strings"
"github.com/AlexxIT/go2rtc/pkg/core"
"github.com/AlexxIT/go2rtc/pkg/xiaomi/legacy"
"github.com/AlexxIT/go2rtc/pkg/xiaomi/miss"
)
func Dial(rawURL string) (core.Producer, error) {
// Format: xiaomi/miss
if strings.Contains(rawURL, "vendor") {
return miss.Dial(rawURL)
}
// Format: xiaomi/legacy
return legacy.Dial(rawURL)
}
func IsLegacy(model string) bool {
return legacy.Supported(model)
}