IMediaPosition::get_CurrentPosition (Compact 2013)
3/26/2014
This method retrieves the current position in terms of the total length of the media stream.
Syntax
HRESULT get_CurrentPosition(
REFTIME* pllTime
);
Parameters
- pllTime
[out] reference time of the current position.
Return Value
Returns an HRESULT value.
Remarks
This is the position that playback has reached. It is a value between zero and the total duration of the media (that is, it does not take into account the rate and start time). If the filter graph is paused, this is the position at which it will restart.
When the filter graph is stopped or paused, this method returns the position at which playback will recommence. When the filter graph is running, the filter graph manager returns the position according to the reference clock. If an individual filter implements this, it should return the stream time of the sample it is processing (that is, the offset time from the beginning) when paused or running. If you implement this using stream time or the reference clock, remember to adjust the value you return for start position and playback rate so that the value returned is in terms of the media's total duration.
After stopping or pausing, a run command causes playback to begin at the current position. This will be where playback stopped or paused, unless there has been an IMediaPosition::put_CurrentPosition call in the meantime.
Requirements
Header |
dshow.h |
Library |
Strmiids.lib |