ImageTrackList: selectedTrack property

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

{{APIRef("WebCodecs API")}}{{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.

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

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}