MediaStreamSource.ReportSeekCompleted Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
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)
Syntax
'Declaration
Protected Sub ReportSeekCompleted ( _
timeSeekedTo As Long _
)
protected void ReportSeekCompleted(
long timeSeekedTo
)
Parameters
- 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.
Remarks
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.
Version Information
Silverlight
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.