MediaPlaybackTimedMetadataTrackList Class

Definition

Represents a read-only list of TimedMetadataTrack objects.

public ref class MediaPlaybackTimedMetadataTrackList sealed : IIterable<TimedMetadataTrack ^>, IVectorView<TimedMetadataTrack ^>
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MediaPlaybackTimedMetadataTrackList final : IIterable<TimedMetadataTrack>, IVectorView<TimedMetadataTrack>
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class MediaPlaybackTimedMetadataTrackList : IEnumerable<TimedMetadataTrack>, IReadOnlyList<TimedMetadataTrack>
Public NotInheritable Class MediaPlaybackTimedMetadataTrackList
Implements IEnumerable(Of TimedMetadataTrack), IReadOnlyList(Of TimedMetadataTrack)
Inheritance
Object Platform::Object IInspectable MediaPlaybackTimedMetadataTrackList
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

Get an instance of this class by accessing the TimedMetadataTracks property of a MediaPlaybackItem. To be notified when the list of tracks changes, handle the TimedMetadataTracksChanged event.

For how-to guidance for working with metadata tracks, see Media items, playlists, and tracks.

Properties

Size

Gets the number of timed metadata tracks in the list.

Methods

First()

Returns an iterator that iterates over the items in the collection.

GetAt(UInt32)

Returns the timed metadata track at the specified index.

GetMany(UInt32, TimedMetadataTrack[])

Retrieves the timed metadata tracks that start at the specified index in the list.

GetPresentationMode(UInt32)

Gets the presentation mode of the timed metadata track with the specified index.

IndexOf(TimedMetadataTrack, UInt32)

Retrieves the index of a specified timed metadata track in the list.

SetPresentationMode(UInt32, TimedMetadataTrackPresentationMode)

Sets the presentation mode of the timed metadata track with the specified index.

Events

PresentationModeChanged

Occurs when the presentation mode of the MediaPlaybackTimedMetadataTrackList changes.

Applies to

See also