Player6.ColorKey (deprecated)

Windows Media Player SDK banner art

This page documents a feature of the Windows Media Player 6.4 ActiveX control. We recommend that you migrate your content to use the Windows Media Player 9 Series ActiveX control. For more information about the Windows Media Player 9 Series ActiveX control, see the Windows Media Player 9 Series SDK.

This property specifies or retrieves the color key being used by the DVD playback.

Syntax

MediaPlayer.DVD.ColorKey

Possible Values

This property is a read/write ULONG indicating the color key. Specify as a hexadecimal value in the form 0xRRGGBB for Microsoft JScript and &HRRGGBB for Microsoft Visual Basic Scripting Edition (VBScript).

Remarks

The color key refers to the destination color key being used by the overlay surface.

Applications should set the color key to an obscure color (some color which, in all probability, will not be present on the desktop). Overlay mixer filters will typically use an obscure color, but if the application knows that the specified color is part of some other content, then the application should change it.

For example, using JScript you can set the color key as follows.

MediaPlayer1.DVD.ColorKey = 0xffffff;

For more information, see Overlay Mixer in the Microsoft DirectShow Software Development Kit.

Requirements

Version: Windows Media Player version 6.4.

Library: Use msdxm.ocx.

Platform: Windows 98 Second Edition or higher.