ImageTrackList: ready property

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

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

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

The **ready** property of the {{domxref("ImageTrackList")}} interface returns a {{jsxref("Promise")}} that resolves when the ImageTrackList is populated with {{domxref("ImageTrack","tracks")}}.

Value

A {{jsxref("Promise")}} that resolves with {{jsxref("undefined")}}.

Examples

The following example prints the value of ready to the console, this will be undefined once the promise resolves.

js
let tracks = imageDecoder.tracks;
let ready = await tracks.ready;
console.log(ready);

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}