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

_id: string
_stream: MediaStream
_tracks: LocalCallTrack[] = []
call?: MatrixCall
client: MatrixClient
connected: true = true
isLocal: true = true
isRemote: false = false
roomId?: string
speakingVolumeSamples: number[]

Accessors

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

Methods

  • 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

  • Set one or both of feed's internal audio and video video mute state Either value may be null to leave it as-is

    Parameters

    • audioMuted: null | boolean

      is the feed's audio muted?

    • videoMuted: null | boolean

      is the feed's video muted?

    Returns void

Generated using TypeDoc