locationong

This commit is contained in:
legop3
2026-04-28 02:22:48 -04:00
parent 1ea5929f79
commit 0e91f38f1e
+2 -1
View File
@@ -12,7 +12,8 @@ const { getRoomCameras, roomCameraEvents } = require('./roomCameraService');
const execFileAsync = promisify(execFile); const execFileAsync = promisify(execFile);
const FFMPEG_BIN = process.env.FFMPEG_BIN || 'ffmpeg'; const FFMPEG_BIN = process.env.FFMPEG_BIN || 'ffmpeg';
const SEGMENT_ROOT = process.env.REPLAY_SEGMENT_DIR || '/var/lib/replay-segments'; const SEGMENT_ROOT =
process.env.REPLAY_SEGMENT_DIR || path.resolve(__dirname, '..', '..', 'data', 'replay-segments');
const SEGMENT_SECONDS = Math.max(1, Number.parseInt(process.env.REPLAY_SEGMENT_SECONDS || '1', 10)); const SEGMENT_SECONDS = Math.max(1, Number.parseInt(process.env.REPLAY_SEGMENT_SECONDS || '1', 10));
const BUFFER_SECONDS = Math.max(20, Number.parseInt(process.env.REPLAY_BUFFER_SECONDS || '45', 10)); const BUFFER_SECONDS = Math.max(20, Number.parseInt(process.env.REPLAY_BUFFER_SECONDS || '45', 10));
const CLEANUP_INTERVAL_MS = 10_000; const CLEANUP_INTERVAL_MS = 10_000;