theluyuan 38ba663466
Some checks failed
Close stale issues and PRs / stale (push) Has been cancelled
init
2025-09-02 14:49:16 +08:00

42 lines
1.4 KiB
TypeScript

/**
* Used to set maximumValue for native volume slider.
* Slider double-precision floating-point number indicating the volume,
* from 0 mute to 1 max, which converts to 0 mute to 19 max in our case.
* 0 as muted, 10 as standard and 19 as max remote participant volume level.
*/
export const NATIVE_VOLUME_SLIDER_SCALE = 19;
/**
* Used to modify initialValue, which is expected to be a decimal value between
* 0 and 1, and converts it to a number representable by an input slider, which
* recognizes whole numbers.
*/
export const VOLUME_SLIDER_SCALE = 100;
/**
* Participant context menu button keys.
*/
export const PARTICIPANT_MENU_BUTTONS = {
ALLOW_DESKTOP: 'allow-desktop',
ALLOW_VIDEO: 'allow-video',
ASK_UNMUTE: 'ask-unmute',
CONN_STATUS: 'conn-status',
DEMOTE: 'demote',
FLIP_LOCAL_VIDEO: 'flip-local-video',
GRANT_MODERATOR: 'grant-moderator',
HIDE_SELF_VIEW: 'hide-self-view',
KICK: 'kick',
LOWER_PARTICIPANT_HAND: 'lower-participant-hand',
MUTE: 'mute',
MUTE_DESKTOP: 'mute-desktop',
MUTE_OTHERS: 'mute-others',
MUTE_OTHERS_DESKTOP: 'mute-others-desktop',
MUTE_OTHERS_VIDEO: 'mute-others-video',
MUTE_VIDEO: 'mute-video',
PIN_TO_STAGE: 'pinToStage',
PRIVATE_MESSAGE: 'privateMessage',
REMOTE_CONTROL: 'remote-control',
SEND_PARTICIPANT_TO_ROOM: 'send-participant-to-room',
VERIFY: 'verify'
};