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.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /**
  2. * The relative path to the default/stock avatar (image) file used on both
  3. * Web/React and mobile/React Native (for the purposes of consistency).
  4. *
  5. * XXX (1) Web/React utilizes relativity on the Jitsi Meet deployment.
  6. * (2) Mobile/React Native utilizes relativity on the local file system at build
  7. * time. Unfortunately, the packager of React Native cannot deal with the
  8. * {@code const} early enough for {@code require} to succeed at runtime.
  9. * Anyway, be sure to synchronize the relative path on Web and mobile for the
  10. * purposes of consistency.
  11. *
  12. * @type {string}
  13. */
  14. export const DEFAULT_AVATAR_RELATIVE_PATH = 'images/avatar.png';
  15. /**
  16. * Icon URL for jigasi participants.
  17. *
  18. * @type {string}
  19. */
  20. export const JIGASI_PARTICIPANT_ICON = 'icon://phone';
  21. /**
  22. * The local participant might not have real ID until she joins a conference,
  23. * so use 'local' as her default ID.
  24. *
  25. * @type {string}
  26. */
  27. export const LOCAL_PARTICIPANT_DEFAULT_ID = 'local';
  28. /**
  29. * Max length of the display names.
  30. *
  31. * @type {string}
  32. */
  33. export const MAX_DISPLAY_NAME_LENGTH = 50;
  34. /**
  35. * The identifier of the sound to be played when new remote participant joins
  36. * the room.
  37. * @type {string}
  38. */
  39. export const PARTICIPANT_JOINED_SOUND_ID = 'PARTICIPANT_JOINED_SOUND';
  40. /**
  41. * The identifier of the sound to be played when remote participant leaves
  42. * the room.
  43. * @type {string}
  44. */
  45. export const PARTICIPANT_LEFT_SOUND_ID = 'PARTICIPANT_LEFT_SOUND';
  46. /**
  47. * The set of possible XMPP MUC roles for conference participants.
  48. *
  49. * @enum {string}
  50. */
  51. export const PARTICIPANT_ROLE = {
  52. MODERATOR: 'moderator',
  53. NONE: 'none',
  54. PARTICIPANT: 'participant'
  55. };