Interface CallOpts

Fires whenever an error occurs when call.js encounters an issue with setting up the call.

The error given will have a code equal to either `MatrixCall.ERR_LOCAL_OFFER_FAILED` or `MatrixCall.ERR_NO_USER_MEDIA`. `ERR_LOCAL_OFFER_FAILED` is emitted when the local client fails to create an offer. `ERR_NO_USER_MEDIA` is emitted when the user has denied access to their audio/video hardware.

module:webrtc/call~MatrixCall#"error"

Param

The error raised by MatrixCall.

Example

matrixCall.on("error", function(err){
console.error(err.code, err);
});

Hierarchy

  • CallOpts

Properties

client: MatrixClient
forceTURN?: boolean
groupCallId?: string
invitee?: string
opponentDeviceId?: string
opponentSessionId?: string
roomId?: string
turnServers?: TurnServer[]

Generated using TypeDoc