feat(capture): accept deltacast as valid source_type in /start handler

This commit is contained in:
Zac Gaetano 2026-06-01 07:56:43 -04:00
parent d4924b044f
commit adfbeac217

View file

@ -325,9 +325,13 @@ router.post('/start', async (req, res) => {
error: `${source_type.toUpperCase()} caller mode requires: source_url`,
});
}
} else if (source_type === 'deltacast') {
if (device === undefined || device === null) {
return res.status(400).json({ error: 'deltacast source requires: device (board/port index)' });
}
} else {
return res.status(400).json({
error: `Unknown source_type: ${source_type}. Must be sdi, srt, or rtmp`,
error: `Unknown source_type: ${source_type}. Must be sdi, srt, rtmp, or deltacast`,
});
}