Delen via


TimedMetadataTrackPresentationMode Enum

Definition

Specifies whether a set of timed metadata tracks are listed in the XAML **MediaTransportControls, whether events are raised for data cues in the tracks, and whether any subtitles and closed captions contained in the tracks are displayed by the system, by the app, or not at all.

public enum class TimedMetadataTrackPresentationMode
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class TimedMetadataTrackPresentationMode
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum TimedMetadataTrackPresentationMode
var value = Windows.Media.Playback.TimedMetadataTrackPresentationMode.disabled
Public Enum TimedMetadataTrackPresentationMode
Inheritance
TimedMetadataTrackPresentationMode
Attributes

Windows requirements

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

Fields

Name Value Description
Disabled 0

The timed metadata track is not listed in the MediaTransportControls. If the metadata track contains subtitles or closed captions, they are not displayed by the platform. Cue events are not raised.

Hidden 1

The timed metadata track is not listed in the MediaTransportControls. If the metadata track contains subtitles or closed captions, they are not displayed by the platform. Cue events are raised.

ApplicationPresented 2

The timed metadata track is listed in the MediaTransportControls. If the metadata track contains subtitles or closed captions, they are not displayed by the platform. Cue events are raised.

PlatformPresented 3

The timed metadata track is listed in the MediaTransportControls. If the metadata track contains subtitles or closed captions, they are displayed by the platform. Cue events are raised.

Remarks

Access the TimedMetadataTracks of a MediaPlaybackItem to get a MediaPlaybackTimedmetadataTrackList object representing the list of timed metadata tracks associated with the playback item. Call SetPresentationMode, passing in a value from this enumeration, to set the presentation mode for the playback item.

For how-to guidance on using timed metadata tracks with MediaPlaybackItem, see Media items, playlists, and tracks.

Applies to