2025-11-28 00:35:46 +09:00
..
new
2025-11-28 00:35:46 +09:00
new
2025-11-28 00:35:46 +09:00
new
2025-11-28 00:35:46 +09:00
new
2025-11-28 00:35:46 +09:00
new
2025-11-28 00:35:46 +09:00
new
2025-11-28 00:35:46 +09:00

page_type, languages, products, name, urlFragment, description, extendedZipContent
page_type languages products name urlFragment description extendedZipContent
sample
cpp
windows-api-win32
SimplePlay sample simplePlay-sample Demonstrates audio/video playback using the IMFPMediaPlayer API.
path target
LICENSE LICENSE

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

  1. Open the Command Prompt window and navigate to the SimplePlay directory.
  2. Type msbuild SimplePlay.sln.

Build the sample using Visual Studio (preferred method)

  1. Open Windows Explorer and navigate to the SimplePlay directory.
  2. Double-click the icon for the SimplePlay.sln file to open the file in Visual Studio.
  3. In the Build menu, select Build Solution. The application will be built in the default \Debug or \Release directory.

Run the sample

  1. Navigate to the directory that contains the new executable, using the command prompt or Windows Explorer.
  2. 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.