LocalCallFeed is a wrapper around MediaStream. It represents a stream that we've created locally by getting user/display media. N.B. that this is not linked to a specific peer connection, a FeedPublication is used for that purpose.

Hierarchy

Constructors

Properties

_id: string
_stream: MediaStream
_tracks: LocalCallTrack[] = []
client: MatrixClient
connected: true = true
isLocal: true = true
isRemote: false = false
publications: FeedPublication[] = []
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