"Fossies" - the Fresh Open Source Software Archive

Member "jitsi-meet-7309/react/features/base/participants/constants.ts" (31 May 2023, 2150 Bytes) of package /linux/misc/jitsi-meet-7309.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) TypeScript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 import { IconPhoneRinging, IconWhiteboard } from '../icons/svg';
    2 
    3 /**
    4  * The relative path to the default/stock avatar (image) file used on both
    5  * Web/React and mobile/React Native (for the purposes of consistency).
    6  *
    7  * XXX (1) Web/React utilizes relativity on the Jitsi Meet deployment.
    8  * (2) Mobile/React Native utilizes relativity on the local file system at build
    9  * time. Unfortunately, the packager of React Native cannot deal with the
   10  * {@code const} early enough for {@code require} to succeed at runtime.
   11  * Anyway, be sure to synchronize the relative path on Web and mobile for the
   12  * purposes of consistency.
   13  *
   14  * @type {string}
   15  */
   16 export const DEFAULT_AVATAR_RELATIVE_PATH = 'images/avatar.png';
   17 
   18 /**
   19  * The value for the "var" attribute of feature tag in disco-info packets.
   20  */
   21 export const DISCO_REMOTE_CONTROL_FEATURE = 'http://jitsi.org/meet/remotecontrol';
   22 
   23 /**
   24  * Icon URL for jigasi participants.
   25  *
   26  * @type {string}
   27  */
   28 export const JIGASI_PARTICIPANT_ICON = IconPhoneRinging;
   29 
   30 /**
   31  * The local participant might not have real ID until she joins a conference,
   32  * so use 'local' as her default ID.
   33  *
   34  * @type {string}
   35  */
   36 export const LOCAL_PARTICIPANT_DEFAULT_ID = 'local';
   37 
   38 /**
   39  * Max length of the display names.
   40  *
   41  * @type {string}
   42  */
   43 export const MAX_DISPLAY_NAME_LENGTH = 50;
   44 
   45 /**
   46  * The identifier of the sound to be played when new remote participant joins
   47  * the room.
   48  *
   49  * @type {string}
   50  */
   51 export const PARTICIPANT_JOINED_SOUND_ID = 'PARTICIPANT_JOINED_SOUND';
   52 
   53 /**
   54  * The identifier of the sound to be played when remote participant leaves
   55  * the room.
   56  *
   57  * @type {string}
   58  */
   59 export const PARTICIPANT_LEFT_SOUND_ID = 'PARTICIPANT_LEFT_SOUND';
   60 
   61 /**
   62  * The set of possible XMPP MUC roles for conference participants.
   63  *
   64  * @enum {string}
   65  */
   66 export const PARTICIPANT_ROLE = {
   67     MODERATOR: 'moderator',
   68     NONE: 'none',
   69     PARTICIPANT: 'participant'
   70 };
   71 
   72 /**
   73  * The audio level at which the hand will be lowered if raised.
   74  *
   75  * @type {string}
   76  */
   77 export const LOWER_HAND_AUDIO_LEVEL = 0.2;
   78 
   79 /**
   80  * Icon URL for the whiteboard participant.
   81  */
   82 export const WHITEBOARD_PARTICIPANT_ICON = IconWhiteboard;