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.

actions.js 827B

12345678910111213141516171819202122232425262728293031323334353637
  1. // @flow
  2. import {
  3. READY_TO_CLOSE,
  4. SCREEN_SHARE_PARTICIPANTS_UPDATED
  5. } from './actionTypes';
  6. /**
  7. * Creates a (redux) action which signals that the SDK is ready to be closed.
  8. *
  9. * @returns {{
  10. * type: READY_TO_CLOSE
  11. * }}
  12. */
  13. export function readyToClose() {
  14. return {
  15. type: READY_TO_CLOSE
  16. };
  17. }
  18. /**
  19. * Creates a (redux) action which signals that the list of known participants
  20. * with screen shares has changed.
  21. *
  22. * @param {string} participantIds - The participants which currently have active
  23. * screen share streams.
  24. * @returns {{
  25. * type: SCREEN_SHARE_PARTICIPANTS_UPDATED,
  26. * participantId: string
  27. * }}
  28. */
  29. export function setParticipantsWithScreenShare(participantIds: Array<string>) {
  30. return {
  31. type: SCREEN_SHARE_PARTICIPANTS_UPDATED,
  32. participantIds
  33. };
  34. }