mirror of
https://github.com/koush/scrypted.git
synced 2026-08-01 19:00:37 +01:00
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:
@@ -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,
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user