Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

constants.js 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. * Local participant might not have real ID until he joins a conference,
  17. * so use 'local' as its default ID.
  18. *
  19. * @type {string}
  20. */
  21. export const LOCAL_PARTICIPANT_DEFAULT_ID = 'local';
  22. /**
  23. * The default display name for the local participant.
  24. * TODO Get the from config and/or localized.
  25. * @type {string}
  26. */
  27. export const LOCAL_PARTICIPANT_DEFAULT_NAME = 'me';
  28. /**
  29. * Max length of the display names.
  30. *
  31. * @type {string}
  32. */
  33. export const MAX_DISPLAY_NAME_LENGTH = 50;
  34. /**
  35. * The set of possible XMPP MUC roles for conference participants.
  36. *
  37. * @enum {string}
  38. */
  39. export const PARTICIPANT_ROLE = {
  40. MODERATOR: 'moderator',
  41. NONE: 'none',
  42. PARTICIPANT: 'participant'
  43. };