Modifies the settings for a given room and updates the state accordingly.
Will show an alert if any setting is set to "approval" in demo mode (room name starts with "d").
modifySettings({ roomName: "d123", audioSet: "allow", videoSet: "allow", screenshareSet: "deny", chatSet: "allow", socket: mySocketInstance, updateAudioSetting: setAudioSetting, updateVideoSetting: setVideoSetting, updateScreenshareSetting: setScreenshareSetting, updateChatSetting: setChatSetting, updateIsSettingsModalVisible: setIsSettingsModalVisible, showAlert: (options) => alertUser(options),}); Copy
modifySettings({ roomName: "d123", audioSet: "allow", videoSet: "allow", screenshareSet: "deny", chatSet: "allow", socket: mySocketInstance, updateAudioSetting: setAudioSetting, updateVideoSetting: setVideoSetting, updateScreenshareSetting: setScreenshareSetting, updateChatSetting: setChatSetting, updateIsSettingsModalVisible: setIsSettingsModalVisible, showAlert: (options) => alertUser(options),});
The options for modifying settings.
A promise that resolves when the settings have been modified.
Modifies the settings for a given room and updates the state accordingly.
Throws
Will show an alert if any setting is set to "approval" in demo mode (room name starts with "d").
Example