From baef85054cf1360ebe83cbeb8a181a90461c2167 Mon Sep 17 00:00:00 2001 From: Steven Wu <7689359+stev3nw@users.noreply.github.com> Date: Mon, 29 Jun 2026 11:19:34 +0800 Subject: [PATCH] fix(homekit): force tcp rtsp_transport for two-way audio talkback (#2081) The two-way audio talkback loopback (RtspServer over listenZeroSingleClient) only supports TCP interleaved transport. The talkback ffmpeg input was built without -rtsp_transport, so ffmpeg attempts a UDP SETUP first and the loopback responds 461 Unsupported Transport. The equivalent webrtc talkback path (plugins/webrtc/src/session-control.ts) has always specified -rtsp_transport tcp; the homekit path did not. Align it. Before: talkback was silent and the log showed "method SETUP failed: 461 Unsupported Transport". After: the 461 is gone and talkback audio works. --- plugins/homekit/src/types/camera/camera-streaming.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/homekit/src/types/camera/camera-streaming.ts b/plugins/homekit/src/types/camera/camera-streaming.ts index 5e2708262..9fed5c8b0 100644 --- a/plugins/homekit/src/types/camera/camera-streaming.ts +++ b/plugins/homekit/src/types/camera/camera-streaming.ts @@ -378,6 +378,7 @@ export function createCameraStreamingDelegate(device: ScryptedDevice & VideoCame url: rtspUrl, // this may not work if homekit is using aac to deliver audio, since inputArguments: [ + '-rtsp_transport', 'tcp', "-acodec", isOpus ? "libopus" : "libfdk_aac", '-i', rtspUrl, ],