Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TextTrackList

Hierarchy

Indexable

[index: number]: TextTrack

Index

Properties

EventTarget

EventTarget: { constructor: any; prototype: EventTarget }

Type declaration

Readonly length

length: number

onaddtrack

onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null

onchange

onchange: ((this: TextTrackList, ev: Event) => any) | null

onremovetrack

onremovetrack: ((this: TextTrackList, ev: TrackEvent) => any) | null

Methods

addEventListener

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

getTrackById

  • Parameters

    • id: string

    Returns TextTrack | null

removeEventListener

Generated using TypeDoc