"Fossies" - the Fresh Open Source Software Archive

Member "jitsi-meet-7561/react/features/base/conference/constants.ts" (29 Sep 2023, 1510 Bytes) of package /linux/misc/jitsi-meet-7561.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. See also the last Fossies "Diffs" side-by-side code changes report for "constants.ts": jitsi-meet_8922_vs_jitsi-meet_8960.

    1 /**
    2  * The command type for updating a participant's avatar URL.
    3  *
    4  * @type {string}
    5  */
    6 export const AVATAR_URL_COMMAND = 'avatar-url';
    7 
    8 /**
    9  * The command type for updating a participant's email address.
   10  *
   11  * @type {string}
   12  */
   13 export const EMAIL_COMMAND = 'email';
   14 
   15 /**
   16  * The name of the {@code JitsiConference} property which identifies the URL of
   17  * the conference represented by the {@code JitsiConference} instance.
   18  *
   19  * TODO It was introduced in a moment of desperation. Jitsi Meet SDK for Android
   20  * and iOS needs to deliver events from the JavaScript side where they originate
   21  * to the Java and Objective-C sides, respectively, where they are to be
   22  * handled. The URL of the {@code JitsiConference} was chosen as the identifier
   23  * because the Java and Objective-C sides join by URL through their respective
   24  * loadURL methods. But features/base/connection's {@code locationURL} is not
   25  * guaranteed at the time of this writing to match the {@code JitsiConference}
   26  * instance when the events are to be fired. Patching {@code JitsiConference}
   27  * from the outside is not cool but it should suffice for now.
   28  */
   29 export const JITSI_CONFERENCE_URL_KEY = Symbol('url');
   30 
   31 export const TRIGGER_READY_TO_CLOSE_REASONS = {
   32     'dialog.sessTerminatedReason': 'The meeting has been terminated',
   33     'lobby.lobbyClosed': 'Lobby room closed.'
   34 };
   35 
   36 /**
   37  * Conference leave reasons.
   38  */
   39 export const CONFERENCE_LEAVE_REASONS = {
   40     SWITCH_ROOM: 'switch_room',
   41     UNRECOVERABLE_ERROR: 'unrecoverable_error'
   42 };