![]() The IUnknown methods are implemented inline. The only member variable is m_cRef, which stores the reference count. The following code declares a class that implements the interface. To get event notifications from the player object, the application must implement the IMFPMediaPlayerCallback interface. ![]() The application implements this callback interface to get notifications from the player object. This interface is used to control playback.Ī pointer to the IMFPMediaPlayerCallback interface. MediaPlayerCallback *g_pPlayerCB = NULL // Application callback object.Ī Boolean value that tracks whether video is playing.Ī pointer to the IMFPMediaPlayer interface. Include the following header files in your project: #define WINVER _WIN32_WINNT_WIN7ĭeclare the following global variables: IMFPMediaPlayer *g_pPlayer = NULL // The MFPlay player object. ![]() This tutorial contains the following sections:įor a more detailed discussion of the MFPlay API, see Getting Started with MFPlay. It is based on the SimplePlay SDK sample. This tutorial presents a complete application that plays video using MFPlay.
0 Comments
Leave a Reply. |