SIGN UP

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(): AudioDeviceManager

Get the StreamManager instance

Returns

getCallAudioSettings(call: Call): AudioParams

Return audio settings of specified call as the AudioParams object.

Parameters

Returns

getDefaultAudioSettings(): AudioParams

Return default audio settings as the AudioParams object.

Returns

getInputDevices(): Promise<Array<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(): Promise<Array<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

  • Return:

    Promise<Array<AudioOutputInfo>>
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

  • Return:

    void
setCallAudioSettings(call: Call, params: AudioParams): Promise<void>

Set audio settings for specified call.

Parameters

Returns

  • Return:

    Promise<void>
setDefaultAudioSettings(params: AudioParams): void

Set default audio settings for calls.

Parameters

Returns

  • Return:

    void