PlaybackMediaMarker 类

定义

表示媒体流时间线中特定位置处的标记。

public ref class PlaybackMediaMarker sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.Playback.IPlaybackMediaMarkerFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class PlaybackMediaMarker final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.Playback.IPlaybackMediaMarkerFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class PlaybackMediaMarker final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.Playback.IPlaybackMediaMarkerFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class PlaybackMediaMarker
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.Playback.IPlaybackMediaMarkerFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class PlaybackMediaMarker
function PlaybackMediaMarker(value, mediaMarketType, text)
Public NotInheritable Class PlaybackMediaMarker
继承
Object Platform::Object IInspectable PlaybackMediaMarker
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

构造函数

PlaybackMediaMarker(TimeSpan)

使用媒体时间线的指定偏移量初始化 PlaybackMediaMarker 类的新实例。

PlaybackMediaMarker(TimeSpan, String, String)

使用媒体时间线、类型字符串和文本的指定偏移量初始化 PlaybackMediaMarker 类的新实例。

属性

MediaMarkerType

获取媒体标记的类型。

Text

获取与标记关联的文本。

Time

获取标记所在的媒体时间线偏移量。

适用于