Hierarchy (view full)

Constructors

Properties

attachedElements: HTMLMediaElement[] = []
isMuted: boolean = false
kind: Audio
sid?: string

sid is set after track is published to server, or if it's a remote track

source: Source
streamState: StreamState = Track.StreamState.Active

indicates current state of stream, it'll indicate paused if the track has been paused by congestion controller

Accessors

  • get currentBitrate(): number
  • current receive bits per second

    Returns number

  • get mediaStreamTrack(): MediaStreamTrack
  • Returns MediaStreamTrack

Methods

  • Allows to set a playout delay (in seconds) for this track. A higher value allows for more buffering of the track in the browser and will result in a delay of media being played back of delayInSeconds

    Parameters

    • delayInSeconds: number

    Returns void

  • calls setSinkId on all attached elements, if supported

    Parameters

    • deviceId: string

      audio output device

    Returns Promise<void>