// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // https://github.com/WICG/web-codecs [ SecureContext, Exposed=(Window,DedicatedWorker) ] interface ImageTrackList { getter ImageTrack([EnforceRange] unsigned long index); readonly attribute unsigned long length; // Index of the currently selected track or -1 if no track is selected. readonly attribute long selectedIndex; // Helper accessor for the currently selected track. readonly attribute ImageTrack? selectedTrack; // Property-based promise for signaling initial metadata readiness (e.g., // track count, animation status, etc). [CallWith=ScriptState] readonly attribute Promise ready; };