Share via


CPosPassThru::GetMediaTime (Compact 2013)

3/26/2014

Retrieves the starting and ending media times.

Syntax

virtual HRESULT GetMediaTime(
  LONGLONG* pStartTime,
  LONGLONG* pEndTime 
);

Parameters

  • pStartTime
    Returned starting media time.
  • pEndTime
    Returned ending media time.

Return Value

Returns an HRESULT value (E_FAIL by default).

Remarks

Override this virtual member function to return the current samples' media time. This represents the current position in terms of media time (for example, frame 20 of a total 130 frames).

Requirements

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CPosPassThru Class