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

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