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.

Hierarchy

Constructors

Properties

_connected: boolean = false
_id: string
_stream: MediaStream
_tracks: RemoteCallTrack[] = []
client: MatrixClient
isLocal: false = false
isRemote: true = true
roomId?: string
speakingVolumeSamples: number[]
streamId: string

Accessors

  • get stream(): undefined | MediaStream
  • Returns undefined | MediaStream

Methods

  • Parameters

    • transceiver: RTCRtpTransceiver

    Returns boolean

  • Returns true if audio is muted or if there are no audio tracks, otherwise returns false

    Deprecated

    use audioMuted instead

    Returns

    is audio muted?

    Returns boolean

  • Returns true video is muted or if there are no video tracks, otherwise returns false

    Deprecated

    use videoMuted instead

    Returns

    is video muted?

    Returns boolean

  • Parameters

    • Optional oldStream: MediaStream
    • Optional newStream: MediaStream

    Returns void

Generated using TypeDoc