You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

constants.ts 1.2KB

123456789101112131415161718192021222324252627282930313233343536
  1. /**
  2. * Used to set maximumValue for native volume slider.
  3. * Slider double-precision floating-point number indicating the volume,
  4. * from 0 mute to 1 max, which converts to 0 mute to 19 max in our case.
  5. * 0 as muted, 10 as standard and 19 as max remote participant volume level.
  6. */
  7. export const NATIVE_VOLUME_SLIDER_SCALE = 19;
  8. /**
  9. * Used to modify initialValue, which is expected to be a decimal value between
  10. * 0 and 1, and converts it to a number representable by an input slider, which
  11. * recognizes whole numbers.
  12. */
  13. export const VOLUME_SLIDER_SCALE = 100;
  14. /**
  15. * Participant context menu button keys.
  16. */
  17. export const PARTICIPANT_MENU_BUTTONS = {
  18. ALLOW_VIDEO: 'allow-video',
  19. ASK_UNMUTE: 'ask-unmute',
  20. CONN_STATUS: 'conn-status',
  21. FLIP_LOCAL_VIDEO: 'flip-local-video',
  22. GRANT_MODERATOR: 'grant-moderator',
  23. HIDE_SELF_VIEW: 'hide-self-view',
  24. KICK: 'kick',
  25. MUTE: 'mute',
  26. MUTE_OTHERS: 'mute-others',
  27. MUTE_OTHERS_VIDEO: 'mute-others-video',
  28. MUTE_VIDEO: 'mute-video',
  29. PIN_TO_STAGE: 'pinToStage',
  30. PRIVATE_MESSAGE: 'privateMessage',
  31. REMOTE_CONTROL: 'remote-control',
  32. SEND_PARTICIPANT_TO_ROOM: 'send-participant-to-room',
  33. VERIFY: 'verify'
  34. };