Rate this page:

AudioDeviceManager

Methods

callKitConfigureAudioSession

Copy URL
IOS
callKitConfigureAudioSession(): 

void

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

Returns

  • type:

    void

callKitReleaseAudioSession

Copy URL
IOS
callKitReleaseAudioSession(): 

void

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.

Returns

  • type:

    void

callKitStartAudio

Copy URL
IOS
callKitStartAudio(): 

void

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

Returns

  • type:

    void

callKitStopAudio

Copy URL
IOS
callKitStopAudio(): 

void

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

Returns

  • type:

    void

getActiveDevice

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

Copy URL
getAudioDevices(): 

Promise<AudioDevice[]>

Returns the list of available audio devices.

Returns

getInstance

Copy URL
getInstance(): 

AudioDeviceManager

Get AudioDeviceManager instance to control audio hardware settings

Returns

off

Copy URL
off(eventType: 

AudioDeviceEventTypes

,
event:

Function

):

void

Remove a handler for the specified AudioDeviceManager event.

Parameters

  • event:

    Function

    Optional

    Handler function. If not specified, all handlers for the event will be removed.

Returns

  • type:

    void

on

Copy URL
on(eventType: 

AudioDeviceEventTypes

,
event:

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

Returns

  • type:

    void

selectAudioDevice

Copy URL
selectAudioDevice(audioDevice: 

AudioDevice

):

void

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

Parameters

Returns

  • type:

    void