A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/en-US/docs/Web/API/TrackEvent/TrackEvent below:

TrackEvent: TrackEvent() constructor - Web APIs

TrackEvent: TrackEvent() constructor

The TrackEvent() constructor creates and returns a new TrackEvent object describing an event which occurred on a list of tracks (AudioTrackList, VideoTrackList, or TextTrackList).

Syntax
new TrackEvent(type)
new TrackEvent(type, options)
Parameters
type

A string with the name of the event. It is case-sensitive and browsers set it to addtrack or removetrack.

options Optional

An object that, in addition of the properties defined in Event(), can have the following properties:

track Optional

The track to which the event refers; this is null by default, but should be set to a VideoTrack, AudioTrack, or TextTrack as appropriate given the type of track.

Return value

A new TrackEvent object, initialized as described by the inputs to the constructor.

Specifications Browser compatibility

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4