ReportSeekCompleted Method

MediaStreamSource.ReportSeekCompleted Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Developers call this method in response to SeekAsync to inform the MediaElement that the MediaStreamSource has finished the requested position change and that future calls to ReportGetSampleCompleted will return samples from that point in the media.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)

protected void ReportSeekCompleted(
	long timeSeekedTo


Type: System.Int64
The time as represented by 100 nanosecond increments where the actual seek took place. This is typically measured from the beginning of the media file.

It is possible for a MediaStreamSource to seek to a position in-between two key frames. To do so, a MediaStreamSource implementation would report the key frame and the subsequent p-frames, even though they have timestamps prior to the seek point. Those samples would not be rendered, but they would be used to help decode the later samples that are rendered. For example, those whose timestamps are at or after the seek point.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2018 Microsoft