Dela via


MediaPlaybackItem.StartTime Property

Definition

Gets the position within the MediaPlaybackItem where playback should begin.

public:
 property TimeSpan StartTime { TimeSpan get(); };
TimeSpan StartTime();
public System.TimeSpan StartTime { get; }
var timeSpan = mediaPlaybackItem.startTime;
Public ReadOnly Property StartTime As TimeSpan

Property Value

The position within the MediaPlaybackItem where playback should begin.

Windows requirements

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

Remarks

Set this value by using the MediaPlaybackItem(MediaSource, TimeSpan) or MediaPlaybackItem(MediaSource, TimeSpan, TimeSpan) constructor to specify that playback of the MediaPlaybackItem should begin at a position other than the start of the item.

Applies to