Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

attachedElements

attachedElements: HTMLMediaElement[] = []

isMuted

isMuted: boolean = false

kind

kind: Kind

Optional mediaStream

mediaStream: MediaStream

mediaStreamTrack

mediaStreamTrack: MediaStreamTrack

Optional sid

sid: string

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

source

source: Source

Accessors

currentBitrate

  • get currentBitrate(): number

dimensions

id

  • get id(): string

Methods

appVisibilityChangedListener

  • appVisibilityChangedListener(): void

attach

  • 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

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

getDeviceId

  • getDeviceId(): Promise<undefined | string>
  • Returns Promise<undefined | string>

    DeviceID of the device that is currently being used for this track

mute

stop

  • stop(): void

unmute

Generated using TypeDoc