MediaPlayer.TimelineControllerPositionOffset MediaPlayer.TimelineControllerPositionOffset MediaPlayer.TimelineControllerPositionOffset MediaPlayer.TimelineControllerPositionOffset MediaPlayer.TimelineControllerPositionOffset Property

Definition

Gets or sets the offset applied to the position of the MediaTimelineController associated with the MediaPlayer.

public : TimeSpan TimelineControllerPositionOffset { get; set; }
TimeSpan TimelineControllerPositionOffset();

void TimelineControllerPositionOffset(TimeSpan timelinecontrollerpositionoffset);
public TimeSpan TimelineControllerPositionOffset { get; set; }
Public ReadWrite Property TimelineControllerPositionOffset As TimeSpan
var timeSpan = mediaPlayer.timelineControllerPositionOffset;
mediaPlayer.timelineControllerPositionOffset = timeSpan;

Property Value

TimeSpan TimeSpan TimeSpan

The offset applied to the position of the MediaTimelineController associated with the MediaPlayer.

Additional features and requirements

Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Remarks

A MediaTimelineController can be associated with multiple instances of MediaPlayer which could be playing different media sources. This property allows you to offset the actual playback position of the player from the current position of the timeline controller.