選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

constants.ts 1.9KB

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