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

Gets the AudioDeviceManager instance

Returns

getCallAudioSettings

Copy URL
getCallAudioSettings(call: 

Call

):

AudioParams

Returns the audio settings of the specified call as a AudioParams object.

Parameters

Returns

getDefaultAudioSettings

Copy URL
getDefaultAudioSettings(): 

AudioParams

Returns default audio settings as the AudioParams object.

Returns

getInputDevices

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

getOutputDevices

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

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

Copy URL
setCallAudioSettings(call: 

Call

,
params:

AudioParams

):

Promise<void>

Sets audio settings for the specified call.

Parameters

Returns

  • type:

    Promise<void>

setDefaultAudioSettings

Copy URL
setDefaultAudioSettings(params: 

AudioParams

):

void

Sets the default audio settings for calls.

Parameters

Returns

  • type:

    void