Launches the media settings modal and updates the available audio and video input devices.
This method checks the current visibility of the media settings modal and, if it is not visible,
retrieves the list of available audio and video input devices. It then updates the state with
these devices and opens the modal. If the modal is already visible, it closes the modal.
Param: options
The options for launching media settings.
Param: options.updateIsMediaSettingsModalVisible
Function to update the visibility state of the media settings modal.
Param: options.isMediaSettingsModalVisible
Current visibility state of the media settings modal.
Param: options.audioInputs
Array to store available audio input devices.
Param: options.videoInputs
Array to store available video input devices.
Param: options.updateAudioInputs
Function to update the available audio input devices.
Param: options.updateVideoInputs
Function to update the available video input devices.
Returns
A promise that resolves when the media settings have been updated.
Launches the media settings modal and updates the available audio and video input devices.
This method checks the current visibility of the media settings modal and, if it is not visible, retrieves the list of available audio and video input devices. It then updates the state with these devices and opens the modal. If the modal is already visible, it closes the modal.
Param: options
The options for launching media settings.
Param: options.updateIsMediaSettingsModalVisible
Function to update the visibility state of the media settings modal.
Param: options.isMediaSettingsModalVisible
Current visibility state of the media settings modal.
Param: options.audioInputs
Array to store available audio input devices.
Param: options.videoInputs
Array to store available video input devices.
Param: options.updateAudioInputs
Function to update the available audio input devices.
Param: options.updateVideoInputs
Function to update the available video input devices.
Returns
A promise that resolves when the media settings have been updated.
Example