VoiceCall

VoiceCall

A VoiceCall represents a Call that uses only audio

Constructor

new VoiceCall(api, callReq)

Create a VoiceCall

Parameters:
Name Type Description
api Api

api instance

callReq CallRequest

call request information

Fires:
  • VoiceCall#event:callConnected
  • VoiceCall#event:callCompleted
  • VoiceCall#event:interlocutorInfo
  • VoiceCall#event:localAudioShared
  • VoiceCall#event:remoteAudioShared
  • VoiceCall#event:localAudioUnshared
  • VoiceCall#event:remoteAudioUnshared
  • VoiceCall#event:localAudioEnabled
  • VoiceCall#event:remoteAudioEnabled
  • VoiceCall#event:localAudioDisabled
  • VoiceCall#event:remoteAudioDisabled

Extends

Members

type

Overrides:

Returns the type of this object

Methods

(protected) _callCompleted()

Overrides:

Officially completes the call. This should be called by all derived classes

(protected) _callConnected()

Overrides:

Officially starts the call when the interpreter has joined and begins process of obtaining interlocutor info. This should be called by all derived classes

disableAudio()

Overrides:

Disables audio. Essentially a mute.

enableAudio(enableopt)

Enables/disables audio. Essentially mute/unmute. With no param true is assumed, but boolean can be used to perform mute

Parameters:
Name Type Attributes Default Description
enable boolean <optional>
true

getInterlocutorInfo() → {InterlocutorInfo}

Overrides:

Used for retrieving interlocutor info after event has already been fired. Will return null if information is not yet ready

Returns:

details on call participant

Type
InterlocutorInfo

hangup() → {Promise.<boolean>}

Overrides:

Overrides base class hangup to provide some additional VoiceCall cleanup

Returns:
Type
Promise.<boolean>

isVideo() → {boolean}

Overrides:

Returns true if this is a video call, false otherwise

Returns:
Type
boolean

isVoice() → {boolean}

Overrides:

Returns true if this is a voice call, false otherwise

Returns:
Type
boolean

start() → {Promise}

Overrides:

Calls start from the super class, but then performs the voice specific start.

Returns:
Type
Promise