About the Sample Rendering Plug-in (deprecated)

This page documents a feature that may be unavailable in future versions of Windows Media Player and the Windows Media Player SDK.

The sample rendering plug-in is designed to work together with the sample digital audio file named rendering.asf, which plays the same music as laure.wma. You can find the sample digital media file in the following folder where you installed this SDK:


\samples\media

The sample file contains an arbitrary data stream that uses a GUID to identify the media type of the data in the stream.

  • Warning This GUID was generated specifically for the sample file; do not use it in your projects.

The GUID for the data in the sample file is defined as:


0xc1ccdf59, 0x6924, 0x4b96, 0x82, 0x47, 0xdb, 0xb0, 0xea, 0xe5, 0xb6, 0x7

To use the rendering plug-in that the Plug-in Wizard generates with the sample digital media file, you must replace the GUID in the definition created by the wizard with the preceding definition and then rebuild the project. The GUID definition can be found in the header file having the same name as your project. Rebuilding the project automatically registers the plug-in DLL on your computer.

The arbitrary data contained in rendering.asf is simply text data. The stream contains three lines of text. The first line is specified to display during playback at one second, the second line at six seconds, and the third line at 11 seconds. The sample plug-in creates a bitmap in memory, paints the background white, and then draws the text to the bitmap before rendering.

To see the sample text rendering, open Windows Media Player after you've registered the sample plug-in. Play the sample file named rendering.asf.

The plug-in provides a sample property page implementation that allows the user to select the color of the displayed text.

The plug-in provides a sample logo graphic implementation as well.

Building a Rendering Plug-in (deprecated)