Microsoft DirectX 8.1 (C++)

IAMMediaTypeSample::GetMediaTime

The GetMediaTime method retrieves the media time stamps for the sample.

Syntax

HRESULT GetMediaTime(
    LONGLONG *pTimeStart,
    LONGLONG *pTimeEnd
);

Parameters

pTimeStart

[out] Pointer to a variable that receives the media start time.

pTimeEnd

[out] Pointer to a variable that receives the media stop time.

Return Value

Returns one of the following values.

Return code Description
S_OK Success.
VFW_E_MEDIA_TIME_NOT_SET No media time stamp was set for this sample.

See Also