TrackEvent.track
The read-only track
property of the TrackEvent
interface specifies the media track object to which the event applies.
The media track will be an AudioTrack
, VideoTrack
, or TextTrack
object.
Syntax
track = TrackEvent.track;
Value
An object which is one of the types AudioTrack
, VideoTrack
, or TextTrack
, depending on the type of media represented by the track. This identifies the track to which the event applies.
Specifications
Specification |
---|
HTML Standard (HTML) # dom-trackevent-track-dev |
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
track |
Yes |
12 |
31 |
10 |
? |
Yes |
Yes |
Yes |
31 |
? |
Yes |
Yes |
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/TrackEvent/track