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: string
enabled: boolean
id: string
kind: string
label: string
muted: boolean
onended: null | ((this: internal.MediaStreamTrack, ev: Event) => any)
onmute: null | ((this: internal.MediaStreamTrack, ev: Event) => any)
onunmute: null | ((this: internal.MediaStreamTrack, ev: Event) => any)

Methods

  • addEventListener<K>(type: K, listener: ((this: internal.MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any), options?: boolean | AddEventListenerOptions): void
  • addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void
  • Parameters

    Returns Promise<void>

  • 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

  • removeEventListener<K>(type: K, listener: ((this: internal.MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any), options?: boolean | EventListenerOptions): void
  • removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void
  • stop(): void
  • Returns void

Generated using TypeDoc