fix(recorders): set PRE_ROLL_SECONDS=1 for sdi/deltacast/blackmagic sidecars
This commit is contained in:
parent
3d4880d944
commit
a22bda44a7
1 changed files with 7 additions and 0 deletions
|
|
@ -276,6 +276,7 @@ function buildStandbyEnv(recorder) {
|
||||||
`LIVE_DIR=${liveDir}`,
|
`LIVE_DIR=${liveDir}`,
|
||||||
`MAM_API_TOKEN=${process.env.CAPTURE_TOKEN || ''}`,
|
`MAM_API_TOKEN=${process.env.CAPTURE_TOKEN || ''}`,
|
||||||
`STANDBY=1`,
|
`STANDBY=1`,
|
||||||
|
`PRE_ROLL_SECONDS=1`,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -699,6 +700,12 @@ router.post('/:id/start', requireRecorderEdit, async (req, res, next) => {
|
||||||
if (dcCount) env.push(`DELTACAST_PORT_COUNT=${dcCount}`);
|
if (dcCount) env.push(`DELTACAST_PORT_COUNT=${dcCount}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Framecache slot has been warm since the bridge started — 1s pre-roll is
|
||||||
|
// sufficient. Avoids a 5s startup lag on both on-demand and standby spawns.
|
||||||
|
if (['deltacast', 'sdi', 'blackmagic'].includes(sourceType)) {
|
||||||
|
env.push('PRE_ROLL_SECONDS=1');
|
||||||
|
}
|
||||||
|
|
||||||
if (sourceType === 'srt' || sourceType === 'rtmp') {
|
if (sourceType === 'srt' || sourceType === 'rtmp') {
|
||||||
env.push(`LISTEN=${isListener ? '1' : '0'}`);
|
env.push(`LISTEN=${isListener ? '1' : '0'}`);
|
||||||
if (isListener) {
|
if (isListener) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue