snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
19
react/features/time-timer/constants.ts
Normal file
19
react/features/time-timer/constants.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
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
|
||||
Reference in New Issue
Block a user