TimedMetadataTrack TimedMetadataTrack TimedMetadataTrack TimedMetadataTrack TimedMetadataTrack Class

Definition

Represents a timed metadata track. The track contains a list of IMediaCue objects and raises events at the beginning and end of the time window of each cue.

public : sealed class TimedMetadataTrack : IMediaTrack
struct winrt::Windows::Media::Core::TimedMetadataTrack : IMediaTrack
public sealed class TimedMetadataTrack : IMediaTrack
Public NotInheritable Class TimedMetadataTrack Implements IMediaTrack
var timedMetadataTrack = new timedMetadataTrack(id, language, kind);
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

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

Version history

Windows version SDK version Value added
1607 14393 Name
1607 14393 PlaybackItem

Constructors

TimedMetadataTrack(String, String, TimedMetadataKind) TimedMetadataTrack(String, String, TimedMetadataKind) TimedMetadataTrack(String, String, TimedMetadataKind) TimedMetadataTrack(String, String, TimedMetadataKind) TimedMetadataTrack(String, String, TimedMetadataKind)

Initializes a new instance of the TimedMetadataTrack class.

Properties

ActiveCues ActiveCues ActiveCues ActiveCues ActiveCues

Gets the list of media cues in the TimedMetadataTrack that are currently active. A cue is considered active after its StartTime has been reached until its Duration has been exceeded.

Cues Cues Cues Cues Cues

Gets a read-only list of the media cues in the TimedMetadataTrack.

DispatchType DispatchType DispatchType DispatchType DispatchType

Gets the custom string value containing routing information for cues.

Id Id Id Id Id

Gets the identifier for the timed metadata track.

Label Label Label Label Label

Gets or sets the label for the timed metadata track.

Language Language Language Language Language

Gets a string indicating the language of the timed metadata track.

Name Name Name Name Name

Gets the name of the TimedMetadataTrack.

PlaybackItem PlaybackItem PlaybackItem PlaybackItem PlaybackItem

Gets the MediaPlaybackItem containing the TimedMetadataTrack.

TimedMetadataKind TimedMetadataKind TimedMetadataKind TimedMetadataKind TimedMetadataKind

Gets a value indicating the kind of metadata contained in the track.

TrackKind TrackKind TrackKind TrackKind TrackKind

Gets a value specifying the type of the media track. For TimedMetadataTrack this value will always be MediaTrackKind.TimedMetadata.

Methods

AddCue(IMediaCue) AddCue(IMediaCue) AddCue(IMediaCue) AddCue(IMediaCue) AddCue(IMediaCue)

Adds the specified media cue to the TimedMetadataTrack.

RemoveCue(IMediaCue) RemoveCue(IMediaCue) RemoveCue(IMediaCue) RemoveCue(IMediaCue) RemoveCue(IMediaCue)

Removes the specified media cue from the TimedMetadataTrack.

Events

CueEntered CueEntered CueEntered CueEntered CueEntered

Occurs when a media time window of a media cue is entered. The time window is defined by the StartTime and Duration of the cue.

CueExited CueExited CueExited CueExited CueExited

Occurs when a media time window of a media cue is exited. The time window is defined by the StartTime and Duration of the cue.

TrackFailed TrackFailed TrackFailed TrackFailed TrackFailed

Raised when an error occurs with the TimedMetadataTrack.

See also