SIGN UP

AudioDeviceManager

Class 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

callKitConfigureAudioSession

callKitConfigureAudioSession(): void

IOS ONLY. Required for the correct CallKit integration only. Otherwise don't use this method.

Initialize AVAudioSession if the application uses CallKit.

Should be called when:

  1. the provider performs the specified start call action
  2. the provider performs the specified answer call action

callKitReleaseAudioSession

callKitReleaseAudioSession(): void

IOS ONLY. Required for the correct CallKit integration only. Otherwise don't use this method.

Restores default AVAudioSession initialization routines, MUST be called if CallKit becomes disabled.

callKitStartAudio

callKitStartAudio(): void

IOS ONLY. Required for the correct CallKit integration only. Otherwise don't use this method.

Starts AVAudioSession.

Should be called when:

  1. the provider’s audio session is activated
  2. the provider performs the specified set held call action

callKitStopAudio

callKitStopAudio(): void

IOS ONLY. Required for the correct CallKit integration only. Otherwise don't use this method.

Stops AVAudioSession.

Should be called when:

  1. the provider performs the specified end call action
  2. the provider performs the specified set held call action

getActiveDevice

getActiveDevice(): Promise<AudioDevice>

Returns active audio device during the call or audio device that will be used for a call if there is no calls at this moment.

Returns

getAudioDevices

getAudioDevices(): Promise<Array<AudioDevice>>

Returns the list of available audio devices.

Returns

getInstance

getInstance(): AudioDeviceManager

Get AudioDeviceManager instance to control audio hardware settings

Returns

off

off(event: AudioDeviceEvents, handler: function): void

Remove a handler for the specified AudioDeviceManager event.

Parameters

on

on(event: AudioDeviceEvents, handler: function): void

Register a handler for the specified AudioDeviceManager event. One event can have more than one handler. Use the AudioDeviceManager.off method to delete a handler.

Parameters

selectAudioDevice

selectAudioDevice(audioDevice: AudioDevice): void

Changes selection of the current active audio device. Please see Android and iOS documentation for platform specific.

Parameters