Construct a new Matrix Call.
Config options.
Private
_opponentPrivate
_statePrivate
Optional
callPrivate
Optional
callPrivate
Optional
callPrivate
candidatePrivate
candidatePrivate
candidatesPrivate
Readonly
clientPrivate
Optional
dataOptional
directionPrivate
feedsPrivate
Optional
Readonly
forceTURNOptional
groupOptional
hangupOptional
hangupPrivate
Optional
icePrivate
ignorePrivate
invitePrivate
Optional
inviteOptional
inviteeReadonly
isPrivate
makingPrivate
Optional
opponentPrivate
Optional
opponentPrivate
Optional
opponentPrivate
Optional
opponentPrivate
opponentPrivate
Optional
opponentPrivate
Optional
opponentPrivate
Optional
peerPrivate
Optional
remotePrivate
remotePrivate
remotePrivate
Readonly
removePrivate
Optional
responseOptional
roomPrivate
Optional
stopPrivate
Optional
subscribePrivate
Optional
successorPrivate
Readonly
turnPrivate
waitPrivate
hasPrivate
hasPrivate
metadataGenerates and returns localSDPStreamMetadata
localSDPStreamMetadata
Private
addPrivate
addPrivate
addPrivate
addPrivate
addPrivate
checkPrivate
choosePrivate
collectPrivate
createCreate a datachannel using this call's peer connection.
A human readable label for this datachannel
An object providing configuration options for the data channel.
Private
createPrivate
createPrivate
deletePrivate
deletePrivate
discardRest
...args: Parameters<CallEventHandlerMap[T]>Rest
...args: Parameters<CallEventHandlerMap[T]>Private
getPrivate
getReturns an array of all local CallFeeds
local CallFeeds
Private
getReturns an array of all remote CallFeeds
remote CallFeeds
Private
getThis method removes all video/rtx codecs from screensharing video transceivers. This is necessary since they can cause problems. Without this the following steps should produce an error: Chromium calls Firefox Firefox answers Firefox starts screen-sharing Chromium starts screen-sharing Call crashes for Chromium with: [96685:23:0518/162603.933321:ERROR:webrtc_video_engine.cc(3296)] RTX codec (PT=97) mapped to PT=96 which is not in the codec list. [96685:23:0518/162603.933377:ERROR:webrtc_video_engine.cc(1171)] GetChangedRecvParameters called without any video codecs. [96685:23:0518/162603.933430:ERROR:sdp_offer_answer.cc(4302)] Failed to set local video description recv parameters for m-section with mid='2'. (INVALID_PARAMETER)
Private
getPrivate
gotPrivate
gotPrivate
gotPrivate
gotHangup a call.
The reason why the call is being hung up.
True to suppress emitting an event.
Private
initConfigure this call from a hangup or reject event. Used by MatrixClient.
The m.call.hangup event
Configure this call from an invite event. Used by MatrixClient.
The m.call.invite event
Check if local video is muted.
If there are multiple video tracks, all of the tracks need to be muted for this to return true. This means if there are no video tracks, this will return true.
True if the local preview video is muted, else false (including if the call is not set up yet).
Check if the microphone is muted.
If there are multiple audio tracks, all of the tracks need to be muted for this to return true. This means if there are no audio tracks, this will return true.
True if the mic is muted, else false (including if the call is not set up yet).
Private
mungeUsed by MatrixClient.
Private
onPrivate
onPrivate
onPrivate
onPrivate
onPrivate
onPrivate
onPrivate
onPrivate
onPrivate
onPrivate
partyPlace a call to this room with call feed.
if you have not specified a listener for 'error' events.
if have passed audio=false.
to use
Pushes supplied feed to the call
to push
whether to add the tracks to the peer connection
Private
queuePrivate
queuePrivate
queueOptional
event: EventEmitterEvents | CallEventPrivate
removeRemoves local call feed from the call and its tracks from the peer connection
to remove
Replace this call with a new call, e.g. for glare resolution. Used by MatrixClient.
The new call.
Private
sendPrivate
sendPrivate
sendPrivate
sendPrivate
sendStarts/stops screensharing
new screensharing state
the desired screensharing state
Optional
opts: IScreensharingOptsPrivate
setStarts/stops screensharing Should be used ONLY if the opponent doesn't support SDPStreamMetadata
new screensharing state
the desired screensharing state
Optional
opts: IScreensharingOptsPrivate
setupPrivate
shouldPrivate
stopSend an m.call.track_subscription event to the focus. The method is throttled to avoid spamming the focus with events when scrolling or resizing the window. The m.call.track_subscription lets the focus know about the visibility and size of different tracks.
whether or not to force the request to be sent immediately
Private
terminateReplaces/adds the tracks from the passed stream to the localUsermediaStream
to use a replacement for the local usermedia stream
Private
updatePrivate
upgradePrivate
waitPrivate
wrappedGenerated using TypeDoc
Typed Event Emitter class which can act as a Base Model for all our model and communication events. This makes it much easier for us to distinguish between events, as we now need to properly type this, so that our events are not stringly-based and prone to silly typos.