pause ptz turns when no ones on

This commit is contained in:
legop3
2026-09-24 18:06:24 -04:00
parent ffd34de56c
commit 8ca714cf1a
4 changed files with 21 additions and 10 deletions
@@ -121,7 +121,7 @@ function describeParticipation(socket) {
color: cameraConfig.color || DEFAULT_PTZ_COLOR,
fallback: null,
},
enabled: entered && (isOperator || position > 0),
enabled: entered && (isOperator || position > 0) && participation.state.queue.length > 0,
isActive: isOperator,
turnsAhead: isOperator ? 0 : position || null,
queueLength: participation.state.queue.length + (participation.state.operatorSocketId ? 1 : 0),