Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RemoteTrack

Hierarchy

Index

Properties

attachedElements: HTMLMediaElement[] = []

An array of all HTMLMediaElements that this track is currently attached to.

height: number

The height of the track if this is a video track

kind: TrackKind

The kind of track. Can be TrackKind.Video or TrackKind.Audio

muted: boolean

The mute status of this track

name: string

A name for this track

source: TrackSource = TrackSource.Unknown

The source of this track set when the track is created

tid: string

A unique id for this track.

track?: MediaStreamTrack

The MediaStreamTrack that contains the media for this track

width: number

The width of the track if this is a video track

Methods

  • attach(element: HTMLMediaElement): HTMLMediaElement
  • attach(): HTMLMediaElement
  • Attach this track to an existing HTMLMediaElement

    Parameters

    • element: HTMLMediaElement

      A HTMLMediaElement to attach the track to.

    Returns HTMLMediaElement

    The existing HTMLMediaElement with the track attached

  • Attach this track to a new HTMLMediaElement

    Returns HTMLMediaElement

    A new HTMLMediaElement with the track attached.

  • detach(element: HTMLMediaElement): HTMLMediaElement[]
  • detach(): HTMLMediaElement[]
  • Detach this track from an existing HTMLMediaElement

    Parameters

    • element: HTMLMediaElement

      A HTMLMediaElement to detach the track from.

    Returns HTMLMediaElement[]

    The existing HTMLMediaElement with the track detached

  • Detach this track from all attached elements

    Returns HTMLMediaElement[]

    all elements with the track detached

  • Get the kind of this track

    Returns TrackKind

    What kind of track this is.

  • Get the source of this track

    Returns TrackSource

    The source of this track.

  • isMuted(): boolean
  • Get the mute status of this track

    Returns boolean

    True if the track is muted.

Generated using TypeDoc