Class CallFeedAbstract

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

_disposed: boolean = false
_height: number = 0
_id: string
_isVisible: boolean = false
_stream?: MediaStream
_tracks: CallTrack[] = []
_width: number = 0
analyser?: AnalyserNode
audioContext?: AudioContext
audioSourceNode?: MediaStreamAudioSourceNode
call?: MatrixCall
client: MatrixClient
frequencyBinCount?: Float32Array
isLocal: boolean
isRemote: boolean
localVolume: number = 1
measuringVolumeActivity: boolean = false
roomId?: string
speaking: boolean = false
speakingThreshold: number = SPEAKING_THRESHOLD
speakingVolumeSamples: number[]
volumeLooperTimeout?: Timeout

Accessors

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

  • Starts emitting volume_changed events where the emitter value is in decibels

    Parameters

    • enabled: boolean

      emit volume changes

    Returns void

  • Parameters

    • width: number
    • height: number

    Returns void

  • Sets up the volume measuring and/or starts the measuring loop

    Returns void

  • Parameters

    • Optional oldStream: MediaStream
    • Optional newStream: MediaStream

    Returns void

Generated using TypeDoc