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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. export const LABEL_ID_VISITORS_COUNT = 'visitors-count';
  25. /**
  26. * The {@code ExpandedLabel} components to be rendered for the individual
  27. * {@code Label}s.
  28. */
  29. export const EXPANDED_LABELS = {
  30. [LABEL_ID_QUALITY]: VideoQualityExpandedLabel,
  31. [LABEL_ID_RECORDING]: {
  32. component: RecordingExpandedLabel,
  33. props: {
  34. mode: JitsiRecordingConstants.mode.FILE
  35. },
  36. alwaysOn: true
  37. },
  38. [LABEL_ID_STREAMING]: {
  39. component: RecordingExpandedLabel,
  40. props: {
  41. mode: JitsiRecordingConstants.mode.STREAM
  42. },
  43. alwaysOn: true
  44. },
  45. [LABEL_ID_TRANSCRIBING]: TranscribingExpandedLabel,
  46. [LABEL_ID_INSECURE_ROOM_NAME]: InsecureRoomNameExpandedLabel,
  47. [LABEL_ID_RAISED_HANDS_COUNT]: {
  48. component: RaisedHandsCountExpandedLabel,
  49. alwaysOn: true
  50. }
  51. };