Call
A Call represents a one-to-one call with another browser, a SIP endpoint, or even a phone number. The Call object supports both audio and video.
Properties
State
The state and prevState properties of a Call have the following values:
Methods
answer
Start the process to answer the incoming Call.
Parameters
None
Returns
None
Example
deaf
Turn off the audio input track.
Example
dtmf
Send a Dual Tone Multi Frequency (DTMF) string to RELAY.
Parameters
Returns
None
Examples
hangup
Hangs up the call.
Parameters
None
Returns
None
Examples
hold
Holds the call.
Parameters
None
Returns
None
Examples
muteAudio
Turn off the audio output track.
Example
muteVideo
Turn off the video output track.
Example
setAudioInDevice
Change the audio input device used for the Call.
Example
setAudioOutDevice
Change the audio output device used for the Call.
Example
setVideoDevice
Change the video output device used for the Call.
Example
toggleAudioMute
Toggle the audio output track.
Example
toggleHold
Toggles the hold state of the call.
Parameters
None
Returns
None
Examples
toggleVideoMute
Toggle the video output track.
Example
undeaf
Turn on the audio input track.
Example
unhold
Un-holds the call.
Parameters
None
Returns
None
Examples
unmuteAudio
Turn on the audio output track.
Example
unmuteVideo
Turn on the video output track.
Example