mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-04-30 22:20:18 +00:00
This event is the event host applications need to listen to for knowing when to dispose the SDK from now on. Since the introduction of breakout rooms it's possible that we navigate from one meeting to another, so there will be several conference join / terminations. In addition, local track destruction is now moved to SET_ROOM when there is no room, aka, we are going back to the welcome page or to the black page.
38 lines
827 B
JavaScript
38 lines
827 B
JavaScript
// @flow
|
|
|
|
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
|
|
};
|
|
}
|
|
|
|
/**
|
|
* 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 {{
|
|
* type: SCREEN_SHARE_PARTICIPANTS_UPDATED,
|
|
* participantId: string
|
|
* }}
|
|
*/
|
|
export function setParticipantsWithScreenShare(participantIds: Array<string>) {
|
|
return {
|
|
type: SCREEN_SHARE_PARTICIPANTS_UPDATED,
|
|
participantIds
|
|
};
|
|
}
|