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:
parent
0eac34529b
commit
63654ea0ed
1 changed files with 5 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue