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 <noreply@anthropic.com>
This commit is contained in:
Zac Gaetano 2026-06-01 15:00:48 -04:00
parent 0eac34529b
commit 63654ea0ed

View file

@ -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 {