Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
6 results across 6 corpora for AudioTrackList.
Developer library 6
` ` HTML video embed element
t within the `<video>` element's HTMLMediaElement that corresponds to the type of track that was added to the element: - HTMLMediaElement.audioTracks - : An AudioTrackList containing all of the media element's audio tracks. Add a listener for `addtrack` to this object to be notified when new audio tracks are added to the element. - HTMLMediaElement.videoTracks - : A VideoTrackList containing all of the media
` ` HTML embed audio element
t within the `<audio>` element's HTMLMediaElement that corresponds to the type of track that was added to the element: - HTMLMediaElement.audioTracks - : An AudioTrackList containing all of the media element's audio tracks. You can add a listener for `addtrack` to this object to be alerted when new audio tracks are added to the element. - HTMLMediaElement.videoTracks - : Add an `addtrack` listener to this VideoT
AudioTrackList
HTML DOM The **`AudioTrackList`** interface is used to represent a list of the audio tracks contained within a given HTML media element, with each track represented by a separate AudioTrack object in the list. Retrieve an instance of this object with HTMLMediaElement.audioTracks. The individual tracks can be accessed using array syntax. ## Instance properties _This interface also inherits properties from its pa
AudioTrackList: change event
racks[0]; track.enabled = !track.enabled; }); ``` ## Specifications ## Browser compatibility ## See also - Related events: [`addtrack`](/docs/Web/API/AudioTrackList/addtrack_event), [`removetrack`](/docs/Web/API/AudioTrackList/removetrack_event) - This event on [`VideoTrackList`](/docs/Web/API/VideoTrackList) targets: [`change`](/docs/Web/API/VideoTrackList/change_event) - [Media Capture and Streams API](/d
AudioTrackList: getTrackById() method
HTML DOM The **AudioTrackList** method **`getTrackById()`** returns the first AudioTrack object from the track list whose id matches the specified string. This lets you find a specified track if you know its ID string. ## Syntax ```js-nolint getTrackById(id) ``` ### Parameters - `id` - : A string indicating the ID of the track to locate within the track list. ### Return value An AudioTrack object indicat
AudioTrackList: addtrack event
HTML DOM The `addtrack` event is fired when a track is added to an [`AudioTrackList`](/docs/Web/API/AudioTrackList). ## Syntax Use the event name in addEventListener(): ```js-nolint addEventListener("addtrack", (event) => { }) ``` Alternatively, assign to the [event handler property](/docs/Web/API/Document_Object_Model/Events#using_onevent_properties) of the interface: ```js-nolint onaddtrack = (event) => { } `