Réduire la table des matières
Développer la table des matières
Développer Réduire
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.

BasicPlayback Sample

Shows how to use Microsoft Media Foundation to play audio and video files.

This sample was first published in the Windows SDK for Windows Vista. A significantly revised version was published in the Windows SDK for Windows Server 2008.

APIs Demonstrated

This sample demonstrates the following Media Foundation interfaces:


The BasicPlayback sample builds a Windows application.

To play a local media file, select Open File from the File menu. To specify a file by URL, select Open URL from the File menu. After you select a file, playback begins automatically. To pause playback, press the SPACEBAR. To resume playback, press the SPACEBAR again.


Windows SDKWindows Vista
Windows Windows Vista


Note  This sample was removed in the Windows SDK for Windows 7.

Downloading the Sample

This sample is available in the following locations.

Windows SDKSDK Root\Samples\multimedia\mediafoundation\BasicPlayback
MSDN Code Galleryhttp://go.microsoft.com/fwlink/p/?linkid=188082


Related topics

Media Foundation SDK Samples
Audio/Video Playback



Ajouts de la communauté

© 2015 Microsoft