ImageTrackList Class

The tracks of the image of an ImageDecoder (https://w3c.github.io/webcodecs/#imagetracklist), and the selected one.

public sealed class ImageTrackList

Properties

NameDescription
LengthGets the number of tracks.
ReadyGets a task that completes when the tracks are known, or fails when the decoder is closed before (https://w3c.github.io/webcodecs/#dom-imagetracklist-ready).
SelectedIndexGets the index of the selected track, or -1 when no track is selected.
SelectedTrackGets the selected track, or null when no track is selected.

Gets the number of tracks.

public uint Length { get; }

Gets a task that completes when the tracks are known, or fails when the decoder is closed before (https://w3c.github.io/webcodecs/#dom-imagetracklist-ready).

public Task Ready { get; }

SelectedIndex

ImageTrack.cs

Gets the index of the selected track, or -1 when no track is selected.

public int SelectedIndex { get; }

SelectedTrack

ImageTrack.cs

Gets the selected track, or null when no track is selected.

public ImageTrack? SelectedTrack { get; }

Indexers

NameDescription
this[uint]Gets the track at an index, or null when the index is out of range.

this[uint]

ImageTrack.cs

Gets the track at an index, or null when the index is out of range.

public ImageTrack? this[uint index] { get; }