MediaSFU React Native
    Preparing search index...

    Function modifySettings

    • Modifies the settings for a given room and updates the state accordingly.

      Parameters

      Returns Promise<void>

      A promise that resolves when the settings have been modified.

      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),
      });