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

  • EventTarget
    • MediaStreamTrack

Index

Properties

contentHint

contentHint: string

enabled

enabled: boolean

Readonly id

id: string

Readonly kind

kind: string

Readonly label

label: string

Readonly muted

muted: boolean

onended

onended: null | ((ev: Event) => any)

onmute

onmute: null | ((ev: Event) => any)

onunmute

onunmute: null | ((ev: Event) => any)

Readonly readyState

Methods

addEventListener

applyConstraints

  • Parameters

    Returns Promise<void>

clone

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

    • event: Event

    Returns boolean

getCapabilities

getConstraints

getSettings

removeEventListener

stop

  • stop(): void
  • Returns void

Generated using TypeDoc