IMFPMediaPlayer::GetVideoPosition Method
[This documentation is preliminary and is subject to change.]
Gets the source and destination rectangles for the video.
Syntax
HRESULT GetVideoPosition(
[out] MFVideoNormalizedRect *pnrcSource,
[out] LPRECT prcDest
);
Parameters
pnrcSource [out]
Pointer to an MFVideoNormalizedRect structure that receives the source rectangle.prcDest [out]
Pointer to a RECT structure that receives the current destination rectangle.
Return Value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Return code | Description |
|---|---|
S_OK |
The method succeeded. |
MF_E_INVALIDREQUEST |
The current media item does not contain video. |
MF_E_SHUTDOWN |
The object's Shutdown method was called. |
Remarks
For more information about the source and destination rectangles, see IMFPMediaPlayer::SetVideoPosition.
Requirements
| Client | Requires Windows 7. |
| Header | Declared in Mfplay.h. |
See Also
IMFPMediaPlayer
Using MFPlay for Audio/Video Playback
Send comments about this topic to Microsoft
Build date: 4/3/2009