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.ts 817B

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