Files
upstream-mirror 1d2bfcac0c
Some checks failed
Prosody Plugin Tests / test (push) Failing after 10m11s
Close stale issues and PRs / stale (push) Failing after 1s
snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
2026-09-15 15:56:32 +05:00

20 lines
960 B
TypeScript

export const TIME_TIMER_NOTIFICATION_ID = 'time-timer-ended';
/**
* `type` of the json-message the `mod_time_restricted` Prosody plugin sends to
* every occupant as they join. It is sent from the room JID, so lib-jitsi-meet
* surfaces it as a NON_PARTICIPANT_MESSAGE_RECEIVED (a server-originated
* message, not a participant's), which the time-timer middleware turns into a
* `startTimeTimer` for the server-enforced limit. When the countdown should
* not be on screen from the very start, `timeTimer.suppressForSeconds` holds
* back the display — the timer itself runs from the moment we are told about it.
*/
export const TIME_RESTRICTED_MESSAGE_TYPE = 'time_restricted';
/**
* Threshold (seconds remaining) at which the timer enters its "warning"
* state: the disk + elapsed digits flip to amber and the pill briefly
* expands to draw the user's attention to the final stretch.
*/
export const WARNING_THRESHOLD_SECONDS = 300; // 5 minutes