AdaptiveMediaSourceCorrelatedTimes AdaptiveMediaSourceCorrelatedTimes AdaptiveMediaSourceCorrelatedTimes AdaptiveMediaSourceCorrelatedTimes Class

Definition

Represents time stamps that are correlated between the playback position of the media player with time stamps embedded in the media stream or included in the manifest file.

public : sealed class AdaptiveMediaSourceCorrelatedTimes : IAdaptiveMediaSourceCorrelatedTimespublic sealed class AdaptiveMediaSourceCorrelatedTimes : IAdaptiveMediaSourceCorrelatedTimesPublic NotInheritable Class AdaptiveMediaSourceCorrelatedTimes Implements IAdaptiveMediaSourceCorrelatedTimes// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

Remarks

Get an instance of this class by calling AdaptiveMediaSource.GetCorrelatedTimes. Depending on the current state of the system and the media, any of these three values may be null at any given time.

Properties

Position Position Position Position

Gets a timespan representing the current playback position of the media player that is playing the content.

public : IReference<TimeSpan> Position { get; }public Nullable<TimeSpan> Position { get; }Public ReadOnly Property Position As Nullable<TimeSpan>// You can use this property in JavaScript.
Value
IReference<TimeSpan> Nullable<TimeSpan> Nullable<TimeSpan> Nullable<TimeSpan>

A timespan representing the current playback position of the media player that is playing the content.

Remarks

The position value is a snapshot made when AdaptiveMediaSource.GetCorrelatedTimes is called. So if the presentation clock is advancing, the value of this property may be slightly offset from the current presentation time.

PresentationTimeStamp PresentationTimeStamp PresentationTimeStamp PresentationTimeStamp

Gets a timespan representing the presentation timestamp embedded in the streaming media.

public : IReference<TimeSpan> PresentationTimeStamp { get; }public Nullable<TimeSpan> PresentationTimeStamp { get; }Public ReadOnly Property PresentationTimeStamp As Nullable<TimeSpan>// You can use this property in JavaScript.
Value
IReference<TimeSpan> Nullable<TimeSpan> Nullable<TimeSpan> Nullable<TimeSpan>

A timespan representing the presentation timestamp embedded in the streaming media.

Remarks

This property will be null before the system has begun downloading media segments.

ProgramDateTime ProgramDateTime ProgramDateTime ProgramDateTime

Gets a DateTime structure representing a time specified in the manifest file for the streaming media.

public : IReference<DateTime> ProgramDateTime { get; }public Nullable<DateTimeOffset> ProgramDateTime { get; }Public ReadOnly Property ProgramDateTime As Nullable<DateTimeOffset>// You can use this property in JavaScript.
Value
IReference<DateTime> Nullable<DateTimeOffset> Nullable<DateTimeOffset> Nullable<DateTimeOffset>

A structure representing a time specified in the manifest file for the streaming media.

Remarks

For Http Live Streaming (HLS), this value is only present if the playlist contains the EXT-X-PROGRAM-DATE-TIME tags.