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: ):
Return audio settings of specified call as the AudioParams object.
Parameters
call:
Returns
type:
getDefaultAudioSettings
getDefaultAudioSettings():
Return default audio settings as the AudioParams object.
Returns
type:
getInputDevices
getInputDevices(): Promise<AudioSourceInfo[]>
Return available audio input devices (sound card/processor). Note that if new passive microphone was plugged into the same sound card, the method will return that sound card; if new microphone has its own sound processor, the method will return the updated array with new device.
Returns
type:
Promise<AudioSourceInfo[]>
getOutputDevices
getOutputDevices(): Promise<AudioOutputInfo[]>
Return available audio output devices (sound card/processor). If new plugged device has its own sound processor, the method will return the updated array with new device.
Returns
type:
Promise<AudioOutputInfo[]>
prepareAudioContext
prepareAudioContext(): void
Create an AudioContext object inside SDK. This function must 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>
Set audio settings for specified call.
Parameters
call:
params:
Returns
type:
Promise<void>
setDefaultAudioSettings
setDefaultAudioSettings(params: ): void
Set default audio settings for calls.
Parameters
params:
Returns
type:
void