您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

constants.ts 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. import { IconPhoneRinging, IconWhiteboard } from '../icons/svg';
  2. /**
  3. * The relative path to the default/stock avatar (image) file used on both
  4. * Web/React and mobile/React Native (for the purposes of consistency).
  5. *
  6. * XXX (1) Web/React utilizes relativity on the Jitsi Meet deployment.
  7. * (2) Mobile/React Native utilizes relativity on the local file system at build
  8. * time. Unfortunately, the packager of React Native cannot deal with the
  9. * {@code const} early enough for {@code require} to succeed at runtime.
  10. * Anyway, be sure to synchronize the relative path on Web and mobile for the
  11. * purposes of consistency.
  12. *
  13. * @type {string}
  14. */
  15. export const DEFAULT_AVATAR_RELATIVE_PATH = 'images/avatar.png';
  16. /**
  17. * The value for the "var" attribute of feature tag in disco-info packets.
  18. */
  19. export const DISCO_REMOTE_CONTROL_FEATURE = 'http://jitsi.org/meet/remotecontrol';
  20. /**
  21. * Icon URL for jigasi participants.
  22. *
  23. * @type {string}
  24. */
  25. export const JIGASI_PARTICIPANT_ICON = IconPhoneRinging;
  26. /**
  27. * The local participant might not have real ID until she joins a conference,
  28. * so use 'local' as her default ID.
  29. *
  30. * @type {string}
  31. */
  32. export const LOCAL_PARTICIPANT_DEFAULT_ID = 'local';
  33. /**
  34. * Max length of the display names.
  35. *
  36. * @type {string}
  37. */
  38. export const MAX_DISPLAY_NAME_LENGTH = 50;
  39. /**
  40. * The identifier of the sound to be played when new remote participant joins
  41. * the room.
  42. *
  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. *
  50. * @type {string}
  51. */
  52. export const PARTICIPANT_LEFT_SOUND_ID = 'PARTICIPANT_LEFT_SOUND';
  53. /**
  54. * The set of possible XMPP MUC roles for conference participants.
  55. *
  56. * @enum {string}
  57. */
  58. export const PARTICIPANT_ROLE = {
  59. MODERATOR: 'moderator',
  60. NONE: 'none',
  61. PARTICIPANT: 'participant'
  62. };
  63. /**
  64. * The audio level at which the hand will be lowered if raised.
  65. *
  66. * @type {string}
  67. */
  68. export const LOWER_HAND_AUDIO_LEVEL = 0.2;
  69. /**
  70. * Icon URL for the whiteboard participant.
  71. */
  72. export const WHITEBOARD_PARTICIPANT_ICON = IconWhiteboard;