MediaStreamSource.ReportSeekCompleted Method


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.

For more information on common issues related to seek, see Troubleshooting Media Issues.


Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions