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

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