Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

MediaPlayer.TimelineControllerPositionOffset Property

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

Requirements Description
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


Feedback

Was this page helpful?