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.js 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. // @flow
  2. import { IconPhone } from '../icons';
  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. * Icon URL for jigasi participants.
  19. *
  20. * @type {string}
  21. */
  22. export const JIGASI_PARTICIPANT_ICON = IconPhone;
  23. /**
  24. * The local participant might not have real ID until she joins a conference,
  25. * so use 'local' as her default ID.
  26. *
  27. * @type {string}
  28. */
  29. export const LOCAL_PARTICIPANT_DEFAULT_ID = 'local';
  30. /**
  31. * Max length of the display names.
  32. *
  33. * @type {string}
  34. */
  35. export const MAX_DISPLAY_NAME_LENGTH = 50;
  36. /**
  37. * The identifier of the sound to be played when new remote participant joins
  38. * the room.
  39. * @type {string}
  40. */
  41. export const PARTICIPANT_JOINED_SOUND_ID = 'PARTICIPANT_JOINED_SOUND';
  42. /**
  43. * The identifier of the sound to be played when remote participant leaves
  44. * the room.
  45. * @type {string}
  46. */
  47. export const PARTICIPANT_LEFT_SOUND_ID = 'PARTICIPANT_LEFT_SOUND';
  48. /**
  49. * The set of possible XMPP MUC roles for conference participants.
  50. *
  51. * @enum {string}
  52. */
  53. export const PARTICIPANT_ROLE = {
  54. MODERATOR: 'moderator',
  55. NONE: 'none',
  56. PARTICIPANT: 'participant'
  57. };