Skip to content

Latest commit

 

History

History
124 lines (100 loc) · 4.03 KB

nf-strmif-imediaseeking-getpositions.md

File metadata and controls

124 lines (100 loc) · 4.03 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:strmif.IMediaSeeking.GetPositions
IMediaSeeking::GetPositions (strmif.h)
The GetPositions method retrieves the current position and the stop position, relative to the total duration of the stream.
GetPositions
GetPositions method [DirectShow]
GetPositions method [DirectShow]
IMediaSeeking interface
IMediaSeeking interface [DirectShow]
GetPositions method
IMediaSeeking.GetPositions
IMediaSeeking::GetPositions
IMediaSeekingGetPositions
dshow.imediaseeking_getpositions
strmif/IMediaSeeking::GetPositions
dshow\imediaseeking_getpositions.htm
dshow
1b267c02-ec2d-4251-aac7-f2f711b16062
4/26/2023
GetPositions, GetPositions method [DirectShow], GetPositions method [DirectShow],IMediaSeeking interface, IMediaSeeking interface [DirectShow],GetPositions method, IMediaSeeking.GetPositions, IMediaSeeking::GetPositions, IMediaSeekingGetPositions, dshow.imediaseeking_getpositions, strmif/IMediaSeeking::GetPositions
strmif.h
Dshow.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
Strmiids.lib
Windows
19H1
IMediaSeeking::GetPositions
strmif/IMediaSeeking::GetPositions
c++
APIRef
kbSyntax
COM
Strmiids.lib
Strmiids.dll
IMediaSeeking.GetPositions

IMediaSeeking::GetPositions

-description

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The GetPositions method retrieves the current position and the stop position, relative to the total duration of the stream.

-parameters

-param pCurrent [out]

Pointer to a variable that receives the current position, in units of the current time format.

-param pStop [out]

Pointer to a variable that receives the stop position, in units of the current time format.

-returns

Returns an HRESULT value. Possible values include the following.

Return code Description
S_OK
Success.
E_NOTIMPL
Method is not supported.
E_POINTER
NULL pointer argument.

-remarks

The current position and the stop position are both relative to the original stream, and are independent of the playback rate.

The returned values are expressed in the current time format. The default time format is REFERENCE_TIME units (100 nanoseconds). To change time formats, use the IMediaSeeking::SetTimeFormat method.

-see-also

Error and Success Codes

IMediaSeeking Interface