snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
87
react/features/base/participants/constants.ts
Normal file
87
react/features/base/participants/constants.ts
Normal file
@@ -0,0 +1,87 @@
|
||||
import { IconPhoneRinging, IconWhiteboard } from '../icons/svg';
|
||||
|
||||
/**
|
||||
* The relative path to the default/stock avatar (image) file used on both
|
||||
* Web/React and mobile/React Native (for the purposes of consistency).
|
||||
*
|
||||
* XXX (1) Web/React utilizes relativity on the Jitsi Meet deployment.
|
||||
* (2) Mobile/React Native utilizes relativity on the local file system at build
|
||||
* time. Unfortunately, the packager of React Native cannot deal with the
|
||||
* {@code const} early enough for {@code require} to succeed at runtime.
|
||||
* Anyway, be sure to synchronize the relative path on Web and mobile for the
|
||||
* purposes of consistency.
|
||||
*
|
||||
* @type {string}
|
||||
*/
|
||||
export const DEFAULT_AVATAR_RELATIVE_PATH = 'images/avatar.png';
|
||||
|
||||
/**
|
||||
* The value for the "var" attribute of feature tag in disco-info packets.
|
||||
*/
|
||||
export const DISCO_REMOTE_CONTROL_FEATURE = 'http://jitsi.org/meet/remotecontrol';
|
||||
|
||||
/**
|
||||
* Icon URL for jigasi participants.
|
||||
*
|
||||
* @type {string}
|
||||
*/
|
||||
export const JIGASI_PARTICIPANT_ICON = IconPhoneRinging;
|
||||
|
||||
/**
|
||||
* The local participant might not have real ID until she joins a conference,
|
||||
* so use 'local' as her default ID.
|
||||
*
|
||||
* @type {string}
|
||||
*/
|
||||
export const LOCAL_PARTICIPANT_DEFAULT_ID = 'local';
|
||||
|
||||
/**
|
||||
* Max length of the display names.
|
||||
*
|
||||
* @type {string}
|
||||
*/
|
||||
export const MAX_DISPLAY_NAME_LENGTH = 50;
|
||||
|
||||
/**
|
||||
* The identifier of the sound to be played when new remote participant joins
|
||||
* the room.
|
||||
*
|
||||
* @type {string}
|
||||
*/
|
||||
export const PARTICIPANT_JOINED_SOUND_ID = 'PARTICIPANT_JOINED_SOUND';
|
||||
|
||||
/**
|
||||
* The identifier of the sound to be played when remote participant leaves
|
||||
* the room.
|
||||
*
|
||||
* @type {string}
|
||||
*/
|
||||
export const PARTICIPANT_LEFT_SOUND_ID = 'PARTICIPANT_LEFT_SOUND';
|
||||
|
||||
/**
|
||||
* The set of possible XMPP MUC roles for conference participants.
|
||||
*
|
||||
* @enum {string}
|
||||
*/
|
||||
export const PARTICIPANT_ROLE = {
|
||||
MODERATOR: 'moderator',
|
||||
NONE: 'none',
|
||||
PARTICIPANT: 'participant'
|
||||
};
|
||||
|
||||
/**
|
||||
* The audio level at which the hand will be lowered if raised.
|
||||
*
|
||||
* @type {string}
|
||||
*/
|
||||
export const LOWER_HAND_AUDIO_LEVEL = 0.2;
|
||||
|
||||
/**
|
||||
* Icon URL for the whiteboard participant.
|
||||
*/
|
||||
export const WHITEBOARD_PARTICIPANT_ICON = IconWhiteboard;
|
||||
|
||||
/**
|
||||
* The ID used for non-participant (system) messages coming from a transcriber.
|
||||
*/
|
||||
export const TRANSCRIBER_ID = 'transcriber';
|
||||
Reference in New Issue
Block a user