Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

constants.ts 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. DEMOTE: 'demote',
  22. FLIP_LOCAL_VIDEO: 'flip-local-video',
  23. GRANT_MODERATOR: 'grant-moderator',
  24. HIDE_SELF_VIEW: 'hide-self-view',
  25. KICK: 'kick',
  26. LOWER_PARTICIPANT_HAND: 'lower-participant-hand',
  27. MUTE: 'mute',
  28. MUTE_OTHERS: 'mute-others',
  29. MUTE_OTHERS_VIDEO: 'mute-others-video',
  30. MUTE_VIDEO: 'mute-video',
  31. PIN_TO_STAGE: 'pinToStage',
  32. PRIVATE_MESSAGE: 'privateMessage',
  33. REMOTE_CONTROL: 'remote-control',
  34. SEND_PARTICIPANT_TO_ROOM: 'send-participant-to-room',
  35. VERIFY: 'verify'
  36. };