ImageTrack: selected property

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

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

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

The **selected** property of the {{domxref("ImageTrack")}} interface returns true if the track is selected for decoding.

Value

A {{jsxref("Boolean")}}, if true the track is selected for decoding.

Examples

The following example prints the value of selected to the console.

js
let track = imageDecoder.tracks.selectedTrack;
console.log(track.selected); // this is the selected track so should return true.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}