Multicam (b) yaml
This commit is contained in:
10
server.js
10
server.js
@@ -34,11 +34,15 @@ for (const cam of camsConfig) {
|
||||
if (!cam.id || !cam.device) {
|
||||
console.error(`cameras.json: Eintrag ohne id/device: ${JSON.stringify(cam)}`); process.exit(1);
|
||||
}
|
||||
// Per-Kamera-Felder in cameras.json überschreiben die globalen Env-Werte
|
||||
switches[cam.id] = new CameraSwitch({
|
||||
id: cam.id, device: cam.device,
|
||||
liveSize: LIVE_SIZE, liveFps: LIVE_FPS,
|
||||
hiresSize: HIRES_SIZE, hiresFps: HIRES_FPS,
|
||||
encode: ENCODE_MODE, onDemand: ON_DEMAND, idleGraceMs: IDLE_GRACE_MS,
|
||||
liveSize: cam.liveSize ?? LIVE_SIZE,
|
||||
liveFps: cam.liveFps ?? LIVE_FPS,
|
||||
hiresSize: cam.hiresSize ?? HIRES_SIZE,
|
||||
hiresFps: cam.hiresFps ?? HIRES_FPS,
|
||||
encode: cam.encode ?? ENCODE_MODE,
|
||||
onDemand: ON_DEMAND, idleGraceMs: IDLE_GRACE_MS,
|
||||
});
|
||||
camsMeta.push({
|
||||
id: cam.id,
|
||||
|
||||
Reference in New Issue
Block a user