Options
All
  • Public
  • Public/Protected
  • All
Menu

A single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well.

Hierarchy

Index

Properties

EventTarget

EventTarget: object

Type declaration

  • constructor: function
    • Returns EventTarget

  • prototype: EventTarget

enabled

enabled: boolean

id

id: string

isolated

isolated: boolean

kind

kind: string

label

label: string

muted

muted: boolean

onended

onended: function | null

onisolationchange

onisolationchange: function | null

onmute

onmute: function | null

onunmute

onunmute: function | null

readyState

Methods

addEventListener

applyConstraints

  • Parameters

    Returns Promise<void>

clone

  • Returns MediaStreamTrack

dispatchEvent

  • dispatchEvent(event: Event): boolean
  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    Parameters

    Returns boolean

getCapabilities

  • Returns MediaTrackCapabilities

getConstraints

  • Returns MediaTrackConstraints

getSettings

  • Returns MediaTrackSettings

removeEventListener

stop

  • stop(): void
  • Returns void

Generated using TypeDoc