Emitted when the Connection is accepted.
The Connection.
Emitted after the HTMLAudioElement for the remote audio is created.
The HTMLAudioElement.
Emitted when the Connection is canceled.
Emitted when the Connection is disconnected.
The Connection.
Emitted when the Connection receives an error.
Emitted when the Connection is muted or unmuted.
Whether the Connection is muted.
The Connection.
Emitted when the Connection is rejected.
The Connection.
Emitted when the Connection gets a webrtc sample object. This event is published every second.
Emitted every 50ms with the current input and output volumes, as a percentage of maximum volume, between -100dB and -30dB. Represented by a floating point number.
A floating point number between 0.0 and 1.0 inclusive.
A floating point number between 0.0 and 1.0 inclusive.
Returns caller verification information about the caller. If no caller verification information is available this will return null.
The custom parameters sent to (outgoing) or received by (incoming) the TwiML app.
The MediaStream (Twilio PeerConnection) this Connection is using for media signaling.
The temporary CallSid for this call, if it's outbound.
Call parameters received from Twilio for an incoming call.
Audio codec used for this Connection. Expecting Connection.Codec but will copy whatever we get from RTC stats.
Whether this Connection is incoming or outgoing.
Get the real CallSid. Returns null if not present or is a temporary call sid.
Get the temporary CallSid.
Set the audio input tracks from a given stream.
Set the audio output sink IDs.
Accept the incoming Connection.
Disconnect from the Connection.
Get the local MediaStream, if set.
Get the remote MediaStream, if set.
Ignore the incoming Connection.
Check if connection is muted
Mute incoming audio.
Whether the incoming audio should be muted. Defaults to true.
Post an event to Endpoint Analytics indicating that the end user has given call quality feedback. Called without a score, this will report that the customer declined to give feedback.
The end-user's rating of the call; an integer 1 through 5. Or undefined if the user declined to give feedback.
The primary issue the end user experienced on the call. Can be: ['one-way-audio', 'choppy-audio', 'dropped-call', 'audio-latency', 'noisy-call', 'echo']
Reject the incoming Connection.
Send a string of digits.
Get the current Connection status.
String representation of Connection instance.
String representation of the Connection class.
Generated using TypeDoc
A Connection represents a media and signaling connection to a TwiML application.