Delen via


MediaPlayer.TimelineControllerPositionOffset Property

Definition

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

public:
 property TimeSpan TimelineControllerPositionOffset { TimeSpan get(); void set(TimeSpan value); };
TimeSpan TimelineControllerPositionOffset();

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

Property Value

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

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)

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.

Applies to