Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 796 Bytes

File metadata and controls

34 lines (23 loc) · 796 Bytes
title short-title slug page-type status browser-compat
ImageTrackList: selectedTrack property
selectedTrack
Web/API/ImageTrackList/selectedTrack
web-api-instance-property
experimental
api.ImageTrackList.selectedTrack

{{APIRef("WebCodecs API")}}{{SeeCompatTable}}{{AvailableInWorkers("window_and_dedicated")}}

The selectedTrack property of the {{domxref("ImageTrackList")}} interface returns an {{domxref("ImageTrack")}} object representing the currently selected track.

Value

An {{domxref("ImageTrack")}} object.

Examples

The following example returns the selectedTrack then prints it to the console.

let track = imageDecoder.tracks.selectedTrack;
console.log(track);

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}