TIEMediaFoundationSourceReader.SetPosition
Declaration
procedure SetPosition(position: int64);
Description
Seeks a new position in the media source.
Parameter | Description |
position | The Media Foundation position in 100 nanosecond units |
Example 1
var
duration: int64;
begin
duration := ImageEnView1.IO.MediaFoundationSourceReader.Duration;
ImageEnView1.IO.MediaFoundationSourceReader.SetPosition( trunc(duration / ScrollBarPosition.Max * ScrollBarPosition.Position) );
end;
Example 2
// Move one minute into the sample
ImageEnView1.IO.MediaFoundationSourceReader.SetPosition( IESecToMediaFoundationTime(60) );
See Also
◼Duration ◼IESecToMediaFoundationTime