Rate this page:

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

get

Copy URL
get(): 

AudioDeviceManager

Get the AudioDeviceManager instance

Returns

getCallAudioSettings

Copy URL
getCallAudioSettings(call: 

Call

):

AudioParams

Return audio settings of specified call as the AudioParams object.

Parameters

Returns

getDefaultAudioSettings

Copy URL
getDefaultAudioSettings(): 

AudioParams

Return default audio settings as the AudioParams object.

Returns

getInputDevices

Copy URL
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

getOutputDevices

Copy URL
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

Copy URL
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

Copy URL
setCallAudioSettings(call: 

Call

,
params:

AudioParams

):

Promise<void>

Set audio settings for specified call.

Parameters

Returns

  • type:

    Promise<void>

setDefaultAudioSettings

Copy URL
setDefaultAudioSettings(params: 

AudioParams

):

void

Set default audio settings for calls.

Parameters

Returns

  • type:

    void