snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
47
react/features/base/conference/constants.ts
Normal file
47
react/features/base/conference/constants.ts
Normal file
@@ -0,0 +1,47 @@
|
||||
/**
|
||||
* The command type for updating a participant's avatar URL.
|
||||
*
|
||||
* @type {string}
|
||||
*/
|
||||
export const AVATAR_URL_COMMAND = 'avatar-url';
|
||||
|
||||
/**
|
||||
* The command type for updating a participant's email address.
|
||||
*
|
||||
* @type {string}
|
||||
*/
|
||||
export const EMAIL_COMMAND = 'email';
|
||||
|
||||
/**
|
||||
* The name of the {@code JitsiConference} property which identifies the URL of
|
||||
* the conference represented by the {@code JitsiConference} instance.
|
||||
*
|
||||
* TODO It was introduced in a moment of desperation. Jitsi Meet SDK for Android
|
||||
* and iOS needs to deliver events from the JavaScript side where they originate
|
||||
* to the Java and Objective-C sides, respectively, where they are to be
|
||||
* handled. The URL of the {@code JitsiConference} was chosen as the identifier
|
||||
* because the Java and Objective-C sides join by URL through their respective
|
||||
* loadURL methods. But features/base/connection's {@code locationURL} is not
|
||||
* guaranteed at the time of this writing to match the {@code JitsiConference}
|
||||
* instance when the events are to be fired. Patching {@code JitsiConference}
|
||||
* from the outside is not cool but it should suffice for now.
|
||||
*/
|
||||
export const JITSI_CONFERENCE_URL_KEY = Symbol('url');
|
||||
|
||||
export const TRIGGER_READY_TO_CLOSE_REASONS = {
|
||||
'dialog.sessTerminatedReason': 'The meeting has been terminated',
|
||||
'lobby.lobbyClosed': 'Lobby room closed.'
|
||||
};
|
||||
|
||||
/**
|
||||
* Conference leave reasons.
|
||||
*/
|
||||
export const CONFERENCE_LEAVE_REASONS = {
|
||||
SWITCH_ROOM: 'switch_room',
|
||||
UNRECOVERABLE_ERROR: 'unrecoverable_error'
|
||||
};
|
||||
|
||||
/**
|
||||
* The ID of the notification that is shown when the user is muted by focus.
|
||||
*/
|
||||
export const START_MUTED_NOTIFICATION_ID = 'start-muted';
|
||||
Reference in New Issue
Block a user