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.
This commit is contained in:
Steven Wu
2026-06-29 11:19:34 +08:00
committed by GitHub
parent f7018ddd9f
commit baef85054c

View File

@@ -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,
],