This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

track

Summary

Returns the track object (TextTrack, AudioTrack, or VideoTrack) to which the event relates.

Property of apis/audio-video/TrackEventapis/audio-video/TrackEvent

Syntax

Note: This property is read-only.

var result = object.track;

Return Value

Returns an object of type ObjectObject

Examples

//. . .
var myTrack = document.getElementById("entrack").track; // get track from track element
//. . .

Standards information

Related specifications

W3C HTML5 Specification
W3C Editor’s Draft

Attributions