MediaSourceAudioInputNode.Seek(TimeSpan) Method


Moves the playback position of the node to the specified time within the media content.

 virtual void Seek(TimeSpan position) = Seek;
void Seek(TimeSpan const& position);
public void Seek(System.TimeSpan position);
function seek(position)
Public Sub Seek (position As TimeSpan)


TimeSpan TimeSpan

A value indicating the position to which the node should seek.


You can't seek to a time that is greater than the duration of the file. If the StartTime or EndTime properties have been set, you can't seek to a position before the StartTime or after the EndTime. Attempting to do so will result in an illegal argument error.

Applies to