Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AudioTrackList

Package version

Used to represent a list of the audio tracks contained within a given HTML media element, with each track represented by a separate AudioTrack object in the list.

Hierarchy

Indexable

[index: number]: AudioTrack

Used to represent a list of the audio tracks contained within a given HTML media element, with each track represented by a separate AudioTrack object in the list.

Index

Properties

EventTarget

EventTarget: { constructor: any; prototype: EventTarget }

Type declaration

  • constructor: function
    • Returns EventTarget

  • prototype: EventTarget

length

length: number

onaddtrack

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

onchange

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

onremovetrack

onremovetrack: ((this: AudioTrackList, 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 AudioTrack | null

item

  • Parameters

    • index: number

    Returns AudioTrack

removeEventListener

Generated using TypeDoc