1.4 KiB
1.4 KiB
page_type, languages, products, name, urlFragment, description, extendedZipContent
| page_type | languages | products | name | urlFragment | description | extendedZipContent | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| sample |
|
|
SimplePlay sample | simplePlay-sample | Demonstrates audio/video playback using the IMFPMediaPlayer API. |
|
SimplePlay sample
Demonstrates audio/video playback using the IMFPMediaPlayer API.
Sample language implementations
C++
Files
- README.md
- resource.h
- SimplePlay.rc
- SimplePlay.sln
- SimplePlay.vcproj
- winmain.cpp
Build the sample using the command prompt
- Open the Command Prompt window and navigate to the SimplePlay directory.
- Type msbuild SimplePlay.sln.
Build the sample using Visual Studio (preferred method)
- Open Windows Explorer and navigate to the SimplePlay directory.
- Double-click the icon for the SimplePlay.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.
Run the sample
- Navigate to the directory that contains the new executable, using the command prompt or Windows Explorer.
- Type SimplePlay.exe at the command line, or double-click the icon for SimplePlay.exe to launch it from Windows Explorer.
To play a file, select Open File from the File menu.
To pause, press the Spacebar. To resume playback, press the Spacebar again.