page_type | languages | products | name | urlFragment | extendedZipContent | description | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sample |
|
|
MFPlayer2 sample |
mfplayer2 |
|
Demonstrates how to use the IMFPMediaPlayer API to perform media playback |
Demonstrates how to use the IMFPMediaPlayer API to perform media playback.
This sample implements the following playback features:
- Play, pause, stop
- Fast-forward and rewind
- Frame stepping
- Seeking
- Volume and mute
- Metadata
- Video zoom
- Video effects
For a more basic example of using IMFPMediaPlayer, see the SimplePlay sample.
C++
Files:
AudioSessionVolume.cpp AudioSessionVolume.h MainDialog.cpp MainDialog.h MFPlayer.h MFPlayer.rc MFPlayer.sln MFPlayer.vcproj Player2.cpp Player2.h readme.txt resource.h winmain.cpp images\mute.bmp images\play.bmp images\slider.bmp images\volume.bmp WinUI\Slider.cpp WinUI\Slider.h WinUI\ThemedButton.cpp WinUI\ThemedButton.h WinUI\utils.h
- Open the Command Prompt window and navigate to the MFPlayer2 directory.
- Type msbuild MFPlayer.sln.
- Open Windows Explorer and navigate to the MFPlayer2 directory.
- Double-click the icon for the MFPlayer.sln file to open the file in Visual Studio.
- In the Build menu, select Build Solution. The application will be built in the default \Debug or \Release directory.
- Navigate to the directory that contains the new executable, using the command prompt or Windows Explorer.
- Type MFPlayer.exe at the command line, or double-click the icon for MFPlayer.exe to launch it from Windows Explorer.