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 810B

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