Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

constants.ts 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. import React from 'react';
  2. import { JitsiRecordingConstants } from '../../../base/lib-jitsi-meet';
  3. import RecordingExpandedLabel from '../../../recording/components/native/RecordingExpandedLabel';
  4. import TranscribingExpandedLabel from '../../../transcribing/components/TranscribingExpandedLabel.native';
  5. import VideoQualityExpandedLabel from '../../../video-quality/components/VideoQualityExpandedLabel.native';
  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. interface IExpandedLabel {
  26. alwaysOn?: boolean;
  27. component: React.ComponentType<any>;
  28. props?: any;
  29. }
  30. /**
  31. * The {@code ExpandedLabel} components to be rendered for the individual
  32. * {@code Label}s.
  33. */
  34. export const EXPANDED_LABELS: {
  35. [key: string]: IExpandedLabel;
  36. } = {
  37. [LABEL_ID_QUALITY]: {
  38. component: VideoQualityExpandedLabel
  39. },
  40. [LABEL_ID_RECORDING]: {
  41. component: RecordingExpandedLabel,
  42. props: {
  43. mode: JitsiRecordingConstants.mode.FILE
  44. },
  45. alwaysOn: true
  46. },
  47. [LABEL_ID_STREAMING]: {
  48. component: RecordingExpandedLabel,
  49. props: {
  50. mode: JitsiRecordingConstants.mode.STREAM
  51. },
  52. alwaysOn: true
  53. },
  54. [LABEL_ID_TRANSCRIBING]: {
  55. component: TranscribingExpandedLabel
  56. },
  57. [LABEL_ID_INSECURE_ROOM_NAME]: {
  58. component: InsecureRoomNameExpandedLabel
  59. },
  60. [LABEL_ID_RAISED_HANDS_COUNT]: {
  61. component: RaisedHandsCountExpandedLabel,
  62. alwaysOn: true
  63. }
  64. };