From 63654ea0edf8fb9d15c5e3a21658fc7d1dee3588 Mon Sep 17 00:00:00 2001 From: ZGaetano Date: Mon, 1 Jun 2026 15:00:48 -0400 Subject: [PATCH] feat(deltacast): persist selected channel as source_config.port The Deltacast picker's selected index is the capture channel on the single board. Write it into source_config.port (in addition to device_index) so the capture sidecar maps "pick channel N" to the bridge's --port N. device_index is retained for backward-compatible display/fallback. Co-Authored-By: Claude Opus 4.8 --- services/web-ui/public/modal-new-recorder.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/services/web-ui/public/modal-new-recorder.jsx b/services/web-ui/public/modal-new-recorder.jsx index 5f74584..652028d 100644 --- a/services/web-ui/public/modal-new-recorder.jsx +++ b/services/web-ui/public/modal-new-recorder.jsx @@ -232,7 +232,11 @@ function NewRecorderModal({ open, onClose }) { } else if (sourceType === 'RTMP') { body.source_config = { url: rtmpUrl }; } else if (sourceType === 'DELTACAST') { - body.source_config = {}; + // One Deltacast board (index 0) exposes 8 channels. The picker's selected + // index IS the capture channel, so persist it as source_config.port; the + // capture sidecar maps that to the bridge's --port. device_index is kept + // for backward-compatible display/fallback. + body.source_config = { port: dcDeviceIdx }; body.device_index = dcDeviceIdx; body.node_id = dcNodeId || undefined; } else {