Share via


Player6.GetCodecDescription (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 method retrieves the descriptive name of the given codec.

Syntax

MediaPlayer.GetCodecDescription(sCodecNum)

Parameters

*  sCodecNum*

Long value indicating the codec number.

Return Value

Returns a String containing the descriptive name of the given codec. This method returns a null string if the codec specified by the sCodecNum parameter is not found.

Remarks

The codec numbers start with 1. You will get an error if you use zero. Typically, the codec number is 1 for audio and 2 for video. Valid values for codec numbers range from 1 to the value of the CodecCount property.

Requirements

Version: Windows Media Player version 6.4.

Library: Use msdxm.ocx.

Platform: Windows 98 Second Edition or higher.

See Also