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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // @flow
  2. import { JitsiRecordingConstants } from '../../../base/lib-jitsi-meet';
  3. import { RecordingExpandedLabel } from '../../../recording';
  4. import { TranscribingExpandedLabel } from '../../../transcribing';
  5. import { VideoQualityExpandedLabel } from '../../../video-quality';
  6. import InsecureRoomNameExpandedLabel from './InsecureRoomNameExpandedLabel';
  7. import RaisedHandsCountExpandedLabel from './RaisedHandsCountExpandedLabel';
  8. export const LabelHitSlop = {
  9. top: 10,
  10. bottom: 10,
  11. left: 0,
  12. right: 0
  13. };
  14. /**
  15. * Timeout to hide the {@ExpandedLabel}.
  16. */
  17. export const EXPANDED_LABEL_TIMEOUT = 5000;
  18. export const LABEL_ID_QUALITY = 'quality';
  19. export const LABEL_ID_RECORDING = 'recording';
  20. export const LABEL_ID_STREAMING = 'streaming';
  21. export const LABEL_ID_TRANSCRIBING = 'transcribing';
  22. export const LABEL_ID_INSECURE_ROOM_NAME = 'insecure-room-name';
  23. export const LABEL_ID_RAISED_HANDS_COUNT = 'raised-hands-count';
  24. /**
  25. * The {@code ExpandedLabel} components to be rendered for the individual
  26. * {@code Label}s.
  27. */
  28. export const EXPANDED_LABELS = {
  29. [LABEL_ID_QUALITY]: VideoQualityExpandedLabel,
  30. [LABEL_ID_RECORDING]: {
  31. component: RecordingExpandedLabel,
  32. props: {
  33. mode: JitsiRecordingConstants.mode.FILE
  34. },
  35. alwaysOn: true
  36. },
  37. [LABEL_ID_STREAMING]: {
  38. component: RecordingExpandedLabel,
  39. props: {
  40. mode: JitsiRecordingConstants.mode.STREAM
  41. },
  42. alwaysOn: true
  43. },
  44. [LABEL_ID_TRANSCRIBING]: TranscribingExpandedLabel,
  45. [LABEL_ID_INSECURE_ROOM_NAME]: InsecureRoomNameExpandedLabel,
  46. [LABEL_ID_RAISED_HANDS_COUNT]: {
  47. component: RaisedHandsCountExpandedLabel,
  48. alwaysOn: true
  49. }
  50. };