2021-01-21 12:07:00 +00:00
|
|
|
// @flow
|
|
|
|
|
2021-11-23 14:06:59 +00:00
|
|
|
import {
|
|
|
|
READY_TO_CLOSE,
|
|
|
|
SCREEN_SHARE_PARTICIPANTS_UPDATED
|
|
|
|
} from './actionTypes';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Creates a (redux) action which signals that the SDK is ready to be closed.
|
|
|
|
*
|
|
|
|
* @returns {{
|
|
|
|
* type: READY_TO_CLOSE
|
|
|
|
* }}
|
|
|
|
*/
|
|
|
|
export function readyToClose() {
|
|
|
|
return {
|
|
|
|
type: READY_TO_CLOSE
|
|
|
|
};
|
|
|
|
}
|
2021-01-21 12:07:00 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Creates a (redux) action which signals that the list of known participants
|
|
|
|
* with screen shares has changed.
|
|
|
|
*
|
|
|
|
* @param {string} participantIds - The participants which currently have active
|
|
|
|
* screen share streams.
|
|
|
|
* @returns {{
|
2021-11-23 14:06:59 +00:00
|
|
|
* type: SCREEN_SHARE_PARTICIPANTS_UPDATED,
|
|
|
|
* participantId: string
|
|
|
|
* }}
|
|
|
|
*/
|
2021-01-21 12:07:00 +00:00
|
|
|
export function setParticipantsWithScreenShare(participantIds: Array<string>) {
|
|
|
|
return {
|
|
|
|
type: SCREEN_SHARE_PARTICIPANTS_UPDATED,
|
|
|
|
participantIds
|
|
|
|
};
|
|
|
|
}
|