Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

attachedElements: HTMLMediaElement[] = []
isMuted: boolean = false
kind: Kind
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

Accessors

  • get currentBitrate(): number
  • get mediaStreamTrack(): MediaStreamTrack

Methods

  • attach(): HTMLMediaElement
  • attach(element: HTMLMediaElement): HTMLMediaElement
  • creates a new HTMLAudioElement or HTMLVideoElement, attaches to it, and returns it

    Returns HTMLMediaElement

  • attaches track to an existing HTMLAudioElement or HTMLVideoElement

    Parameters

    • element: HTMLMediaElement

    Returns HTMLMediaElement

  • detach(): HTMLMediaElement[]
  • detach(element: HTMLMediaElement): HTMLMediaElement
  • stop(): void

Generated using TypeDoc