Class ModifyDisplaySettings

Modifies the display settings based on the provided parameters.

This method updates the display settings for the meeting based on the participant's level, recording status, and other conditions. It validates display types and shows alerts when necessary. It also handles the display settings for breakout rooms.

The options containing the parameters to modify the display settings.

The parameters for modifying the display settings.

Function to show alert messages.

The current meeting display type.

Flag indicating if auto wave is enabled.

Flag indicating if full display is forced.

Flag indicating if the meeting video is optimized.

The current level of the meeting.

Flag indicating if recording has started.

Flag indicating if recording has resumed.

Flag indicating if recording has stopped.

Flag indicating if recording is paused.

The current recording display type.

Flag indicating if the recording video is optimized.

The previous force full display value.

The previous meeting display type.

Function to update the meeting display type.

Function to update the auto wave setting.

Function to update the force full display setting.

Function to update the meeting video optimization setting.

Function to update the previous force full display setting.

Function to update the previous meeting display type.

Function to update the visibility of the display settings modal.

Function to update the first all setting.

Function to update the main window.

Flag indicating if a breakout room has started.

Flag indicating if a breakout room has ended.

Function to handle screen changes.

A promise that resolves when the display settings have been modified.

const options: ModifyDisplaySettingsOptions = {
parameters: {
showAlert: (alert) => console.log(alert.message),
meetingDisplayType: 'video',
autoWave: true,
forceFullDisplay: false,
meetingVideoOptimized: true,
islevel: '1',
recordStarted: false,
recordResumed: false,
recordStopped: false,
recordPaused: false,
recordingDisplayType: 'media',
recordingVideoOptimized: false,
prevForceFullDisplay: false,
prevMeetingDisplayType: 'media',
updateMeetingDisplayType: (type) => console.log('Updated display type:', type),
updateAutoWave: (wave) => console.log('Updated auto wave:', wave),
updateForceFullDisplay: (fullDisplay) => console.log('Updated force full display:', fullDisplay),
updateMeetingVideoOptimized: (optimized) => console.log('Updated video optimization:', optimized),
updatePrevForceFullDisplay: (fullDisplay) => console.log('Updated previous full display:', fullDisplay),
updatePrevMeetingDisplayType: (type) => console.log('Updated previous display type:', type),
updateIsDisplaySettingsModalVisible: (isVisible) => console.log('Display settings modal is now:', isVisible),
updateFirstAll: (firstAll) => console.log('Updated first all:', firstAll),
updateUpdateMainWindow: (update) => console.log('Updated main window:', update),
breakOutRoomStarted: false,
breakOutRoomEnded: false,
onScreenChanges: async ({ changed, parameters }) => console.log('Screen changes:', changed),
},
};

const modifyDisplaySettingsService = new ModifyDisplaySettings();
await modifyDisplaySettingsService.modifyDisplaySettings(options);

Constructors

Methods