feat(growing): thread growing_codec through /capture/start session params

This commit is contained in:
ZGaetano 2026-06-04 20:58:20 +00:00
parent a031ff1c9e
commit 6af5d77d62
2 changed files with 3 additions and 0 deletions

View file

@ -329,6 +329,7 @@ router.post('/start', async (req, res) => {
growing_smb_username,
growing_smb_password,
growing_smb_vers,
growing_codec,
} = req.body;
if (!project_id || !clip_name) {
@ -413,6 +414,7 @@ router.post('/start', async (req, res) => {
if (growing_smb_username) process.env.GROWING_SMB_USERNAME = growing_smb_username;
if (growing_smb_password) process.env.GROWING_SMB_PASSWORD = growing_smb_password;
if (growing_smb_vers) process.env.GROWING_SMB_VERS = growing_smb_vers;
if (growing_codec) process.env.GROWING_CODEC = growing_codec;
const session = await captureManager.start({
projectId: project_id,

View file

@ -918,6 +918,7 @@ router.post('/:id/start', requireRecorderEdit, async (req, res, next) => {
growing_smb_username: growingInfra.growing_smb_username || '',
growing_smb_password: growingInfra.growing_smb_password || '',
growing_smb_vers: growingInfra.growing_smb_vers || '3.0',
growing_codec: recorder.growing_codec === 'hevc_nvenc' ? 'hevc_nvenc' : 'avci100',
};
const captureRes = await fetch(captureStartUrl, {
method: 'POST',