Export (0) Print
Expand All

IWMReaderAdvanced2::StartAtMarker method

The StartAtMarker method starts the reader from a specified marker.

Syntax


HRESULT StartAtMarker(
  [in]  WORD wMarkerIndex,
  [in]  QWORD cnsDuration,
  [in]  float fRate,
  [in]  void *pvContext
);

Parameters

wMarkerIndex [in]

WORD containing the marker index.

cnsDuration [in]

Specifies the duration, in 100-nanosecond units.

fRate [in]

Floating point number indicating rate. Normal-speed playback is 1.0; higher numbers cause faster playback. Numbers less than zero indicate reverse rate (rewinding). The valid range is 1.0 through 10.0, and -1.0 through -10.0.

pvContext [in]

Generic pointer, for use by the application.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codeDescription
S_OK

The method succeeded.

E_OUTOFMEMORY

There is not enough available memory.

NS_E_INVALID_REQUEST

The value for fRate is not within the valid ranges.

E_UNEXPECTED

The method failed for an unspecified reason.

 

Remarks

This method is very similar to IWMReader::Start. The difference is that this method uses a marker index but IWMReader::Start uses a start time.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Version

Windows Media Format 7 SDK, or later versions of the SDK

Header

Wmsdkidl.h (include Wmsdk.h)

Library

Wmvcore.lib;
WMStubDRM.lib (if you use DRM)

See also

IWMReaderAdvanced2 Interface
Markers
Using Markers

 

 

Community Additions

ADD
Show:
© 2014 Microsoft