launch Media Settings
Launches the media settings modal and updates the available audio and video input devices.
This function checks if the media settings modal is not currently visible, and if so, it attempts to get the media stream to force the permission prompt, then retrieves the available media devices and updates the audio and video inputs lists.
Example:
val options = LaunchMediaSettingsOptions(
isMediaSettingsModalVisible = false,
audioInputs = emptyList(),
videoInputs = emptyList(),
videoAlreadyOn = false,
audioAlreadyOn = false,
onWeb = true,
)
launchMediaSettings(options)Content copied to clipboard