Add HomeKit stream testing via HAP snapshot

- Add worker_homekit.go with direct hap.Dial + GetImage flow
- Bypass SRTP/Producer pipeline for homekit:// URLs
- Route homekit:// streams to dedicated handler in worker.go
This commit is contained in:
eduard256
2026-04-05 12:58:26 +00:00
parent a9820abc37
commit 528ec8e00b
4 changed files with 55 additions and 0 deletions
+6
View File
@@ -4,6 +4,7 @@ import (
"bytes"
"fmt"
"os/exec"
"strings"
"time"
"github.com/AlexxIT/go2rtc/pkg/core"
@@ -50,6 +51,11 @@ func RunWorkers(s *Session, urls []string) {
func testURL(s *Session, rawURL string) {
defer s.AddTested()
if strings.HasPrefix(rawURL, "homekit://") {
testHomeKit(s, rawURL)
return
}
handler := GetHandler(rawURL)
if handler == nil {
return