The read-only track
property of the TrackEvent
interface specifies the media track object to which the event applies. This 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 | Status | Comment |
HTML Living StandardThe definition of 'TrackEvent.track' in that specification. | Living Standard | Initial definition. |
HTML5The definition of 'TrackEvent.track' in that specification. | Recommendation | Initial definition. |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
track
|
Chrome
Full support Yes |
Edge
Full support ≤79 |
Firefox
? |
IE
? |
Opera
? |
Safari
? |
WebView Android
Full support Yes |
Chrome Android
Full support Yes |
Firefox Android
? |
Opera Android
? |
Safari iOS
? |
Samsung Internet Android
Full support Yes |
Legend
- Full support
- Full support
- Compatibility unknown
- Compatibility unknown
TrackEvent.track by Mozilla Contributors is licensed under CC-BY-SA 2.5.