Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MediaStreamTrack

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: { constructor: any; prototype: EventTarget }

Type declaration

enabled

enabled: boolean

Readonly id

id: string

Readonly isolated

isolated: boolean

Readonly kind

kind: string

Readonly label

label: string

Readonly muted

muted: boolean

onended

onended: ((this: MediaStreamTrack, ev: Event) => any) | null

onisolationchange

onisolationchange: ((this: MediaStreamTrack, ev: Event) => any) | null

onmute

onmute: ((this: MediaStreamTrack, ev: Event) => any) | null

onunmute

onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null

Readonly readyState

Methods

addEventListener

applyConstraints

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

getConstraints

getSettings

removeEventListener

stop

  • stop(): void
  • Returns void

Generated using TypeDoc