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

constants.js 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // @flow
  2. export const PARTICIPANTS_PANE_ID = 'participantsPane';
  3. /**
  4. * Reducer key for the feature.
  5. */
  6. export const REDUCER_KEY = 'features/participants-pane';
  7. export type ActionTrigger = 'Hover' | 'Permanent'
  8. /**
  9. * Enum of possible participant action triggers.
  10. */
  11. export const ACTION_TRIGGER: {HOVER: ActionTrigger, PERMANENT: ActionTrigger} = {
  12. HOVER: 'Hover',
  13. PERMANENT: 'Permanent'
  14. };
  15. export type MediaState = 'Muted' | 'ForceMuted' | 'Unmuted' | 'None';
  16. /**
  17. * Enum of possible participant media states.
  18. */
  19. export const MEDIA_STATE: {
  20. MUTED: MediaState,
  21. FORCE_MUTED: MediaState,
  22. UNMUTED: MediaState,
  23. NONE: MediaState,
  24. } = {
  25. MUTED: 'Muted',
  26. FORCE_MUTED: 'ForceMuted',
  27. UNMUTED: 'Unmuted',
  28. NONE: 'None'
  29. };
  30. export type QuickActionButtonType = 'Mute' | 'AskToUnmute' | 'None';
  31. /**
  32. * Enum of possible participant mute button states.
  33. */
  34. export const QUICK_ACTION_BUTTON: {
  35. MUTE: QuickActionButtonType,
  36. ASK_TO_UNMUTE: QuickActionButtonType,
  37. NONE: QuickActionButtonType
  38. } = {
  39. MUTE: 'Mute',
  40. ASK_TO_UNMUTE: 'AskToUnmute',
  41. NONE: 'None'
  42. };