Service for updating media settings including audio, video, screenshare, and chat.
UpdateMediaSettings
Provides a method to update multiple media settings at once using specified update functions.
updateMediaSettings
Options for updating media settings:
settings
updateAudioSetting
updateVideoSetting
updateScreenshareSetting
updateChatSetting
Updates settings directly through the provided functions.
const settings = ['mute', 'HD', 'enabled', 'disabled'];const options = { settings, updateAudioSetting: (value) => console.log(`Audio setting updated to: ${value}`), updateVideoSetting: (value) => console.log(`Video setting updated to: ${value}`), updateScreenshareSetting: (value) => console.log(`Screenshare setting updated to: ${value}`), updateChatSetting: (value) => console.log(`Chat setting updated to: ${value}`)};updateMediaSettingsService.updateMediaSettings(options); Copy
const settings = ['mute', 'HD', 'enabled', 'disabled'];const options = { settings, updateAudioSetting: (value) => console.log(`Audio setting updated to: ${value}`), updateVideoSetting: (value) => console.log(`Video setting updated to: ${value}`), updateScreenshareSetting: (value) => console.log(`Screenshare setting updated to: ${value}`), updateChatSetting: (value) => console.log(`Chat setting updated to: ${value}`)};updateMediaSettingsService.updateMediaSettings(options);
Updates the media settings by invoking the provided update functions for each setting.
The options for updating the media settings.
A promise that resolves when the media settings have been updated.
Service for updating media settings including audio, video, screenshare, and chat.
Name
UpdateMediaSettings
Description
Provides a method to update multiple media settings at once using specified update functions.
Method
updateMediaSettings
Param: options
Options for updating media settings:
settings
{Settings}: The settings values to apply.updateAudioSetting
{Function}: Function to update the audio setting.updateVideoSetting
{Function}: Function to update the video setting.updateScreenshareSetting
{Function}: Function to update the screenshare setting.updateChatSetting
{Function}: Function to update the chat setting.Returns
Updates settings directly through the provided functions.
Example