The TrackEvent interface, which is part of the HTML DOM specification, used for events which represent changes to a set of available on an HTML media element; these events are addtrack and removetrack.
The TrackEvent interface, which is part of the HTML DOM specification, used for events which represent changes to a set of available on an HTML media element; these events are addtrack and removetrack.
(constructor & args)
Constructor.
The TrackEvent() constructor creates and returns a new web.video.TrackEvent
object describing an event which occurred on a list of tracks (web.media.AudioTrackList
, web.video.VideoTrackList
, or web.media.TextTrackList
).
type The type of track event which is described by the object: "addtrack" or "removetrack". eventInfo Optional An optional dictionary providing additional information configuring the new event; it can contain the following fields in any combination:
track Optional
The track to which the event refers; this is null by default, but should be set to a web.video.VideoTrack
, web.media.AudioTrack
, or web.media.TextTrack
as appropriate given the type of track.
bubbles Optional
A Boolean indicating whether the event bubbles or not.
cancelable Optional
A Boolean indicating whether or not the event can be canceled.
composed Optional
A Boolean indicating whether or not the event will trigger listeners outside of a shadow root; see Event.composed
for more details.
See also: https://developer.mozilla.org/en-US/docs/Web/API/TrackEvent/TrackEvent
Constructor. The TrackEvent() constructor creates and returns a new `web.video.TrackEvent` object describing an event which occurred on a list of tracks (`web.media.AudioTrackList`, `web.video.VideoTrackList`, or `web.media.TextTrackList`). type The type of track event which is described by the object: \"addtrack\" or \"removetrack\". eventInfo Optional An optional dictionary providing additional information configuring the new event; it can contain the following fields in any combination: track Optional The track to which the event refers; this is null by default, but should be set to a `web.video.VideoTrack`, `web.media.AudioTrack`, or `web.media.TextTrack` as appropriate given the type of track. bubbles Optional A Boolean indicating whether the event bubbles or not. cancelable Optional A Boolean indicating whether or not the event can be canceled. composed Optional A Boolean indicating whether or not the event will trigger listeners outside of a shadow root; see `Event.composed` for more details. See also: `https://developer.mozilla.org/en-US/docs/Web/API/TrackEvent/TrackEvent`
(track this)
Property.
[Read Only]
The read-only track property of the web.video.TrackEvent
interface
the media track object to which the event applies.
track = TrackEvent.track;
See also: https://developer.mozilla.org/en-US/docs/Web/API/TrackEvent/track
Property. [Read Only] The read-only track property of the `web.video.TrackEvent` interface the media track object to which the event applies. `track = TrackEvent.track;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/TrackEvent/track`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close