20 lines
960 B
TypeScript
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
|