Class BreakoutRoomUpdated

Updates the state of breakout rooms based on the provided data and parameters.

This method handles changes in breakout rooms, updates the relevant state variables, and triggers necessary UI updates based on the current status of the breakout rooms.

The options object containing the data and parameters.

The data object containing information about the breakout rooms.

The parameters object containing various state update functions and other parameters.

Indicates if the breakout room has started.

Indicates if the breakout room has ended.

The list of current breakout rooms.

The ID of the new room for the host.

The level of the breakout room (e.g., '2' for host).

The list of all participants.

The list of participants who are not banned.

The current display type of the meeting.

The previous display type of the meeting.

Function to update the breakout rooms.

Function to update the breakout room started state.

Function to update the breakout room ended state.

Function to update the host's new room.

Function to update the meeting display type.

Function to update the list of all participants.

Function to update the list of participants who are not banned.

Function to handle screen changes.

Function to handle reporting.

A promise that resolves when the breakout room state has been updated.

Will throw an error if the update process fails.

const options = {
data: {
forHost: true,
newRoom: 3,
status: 'started',
members: [
{ name: 'user1', isBanned: false, audioID: 'audio1', videoID: 'video1' },
{ name: 'user2', isBanned: true, audioID: 'audio2', videoID: 'video2' },
],
breakoutRooms: [[{ name: 'user1' }, { name: 'user2' }]],
},
parameters: {
socket: socketInstance,
roomName: 'mainRoom',
screenStates: [{ mainScreenPerson: 'user1', mainScreenFilled: true, adminOnMainScreen: false }],
participants: [{ name: 'admin', islevel: '2' }],
breakOutRoomStarted: false,
breakOutRoomEnded: false,
hostNewRoom: 0,
islevel: '2',
participantsAll: [],
updateBreakoutRooms: (rooms) => {},
updateBreakOutRoomStarted: (started) => {},
updateBreakOutRoomEnded: (ended) => {},
updateHostNewRoom: (room) => {},
updateMeetingDisplayType: (type) => {},
updateParticipantsAll: (participants) => {},
updateParticipants: (participants) => {},
onScreenChanges: async () => {},
rePort: async () => {},
},
};

const breakoutRoomService = new BreakoutRoomUpdated();
await breakoutRoomService.breakoutRoomUpdated(options);

Constructors

Methods

Constructors

Methods