AudioDeviceManager
Interface that may be used to manage audio devices, i.e. see current active device, select another active device and get the list of available devices.
Methods
getCallAudioSettings
getCallAudioSettings(call: ):
Returns the audio settings of the specified call as a AudioParams object.
Parameters
call:
Returns
type:
getDefaultAudioSettings
getDefaultAudioSettings():
Returns default audio settings as the AudioParams object.
Returns
type:
getInputDevices
getInputDevices(): Promise<AudioSourceInfo[]>
Returns available audio input devices (sound card/processor). Note that if a new passive microphone is plugged into the same sound card, the method returns that sound card; if a new microphone has its own sound processor, the method returns the updated array with the new device.
Returns
type:
Promise<AudioSourceInfo[]>
getOutputDevices
getOutputDevices(): Promise<AudioOutputInfo[]>
Returns available audio output devices (sound card/processor). If a new plugged device has its own sound processor, the method returns the updated array with the new device.
Returns
type:
Promise<AudioOutputInfo[]>
prepareAudioContext
prepareAudioContext(): void
Creates an AudioContext object inside SDK. This function should be used on a user gesture at Google Chrome 66 and above See Google Developers Blog post about this issue
Returns
type:
void
setCallAudioSettings
setCallAudioSettings(call: , params: ): Promise<void>
Sets audio settings for the specified call.
Parameters
call:
params:
Returns
type:
Promise<void>
setDefaultAudioSettings
setDefaultAudioSettings(params: ): void
Sets the default audio settings for calls.
Parameters
params:
Returns
type:
void