IMFByteStreamTimeSeek::GetTimeSeekResult method (mfidl.h)

Gets the result of a time-based seek.

Syntax

HRESULT GetTimeSeekResult(
  [out] QWORD *pqwStartTime,
  [out] QWORD *pqwStopTime,
  [out] QWORD *pqwDuration
);

Parameters

[out] pqwStartTime

Receives the new position after the seek, in 100-nanosecond units.

[out] pqwStopTime

Receives the stop time, in 100-nanosecond units. If the stop time is unknown, the value is zero.

[out] pqwDuration

Receives the total duration of the file, in 100-nanosecond units. If the duration is unknown, the value is –1.

Return value

This method can return one of these values.

Return code Description
S_OK
The method succeeded.
MF_E_INVALIDREQUEST
The byte stream does not support time-based seeking, or no data is available.

Remarks

This method returns the server response from a previous time-based seek.

Note  This method normally cannot be invoked until some data is read from the byte stream, because the IMFByteStreamTimeSeek::TimeSeek method does not send a server request immediately.
 

Requirements

   
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header mfidl.h

See also

IMFByteStreamTimeSeek