Partager via


IWMPControls3 (VB and C#) interface

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

Provides properties and methods for audio language selection and support that supplement the IWMPControls2 interface.

In addition to the properties and methods inherited from IWMPControls2, the IWMPControls3 interface exposes the following properties.

Members

The IWMPControls3 (VB and C#) interface has these types of members:

Methods

The IWMPControls3 (VB and C#) interface has these methods.

Method Description
getAudioLanguageDescription Returns the description for the audio language corresponding to the specified one-based index.
getAudioLanguageID Returns the LCID for a specified audio language index.
getLanguageName Returns the name of the audio language with the specified LCID.

Properties

The IWMPControls3 (VB and C#) interface has these properties.

Property Access type Description
audioLanguageCount
Read-only
Gets the count of supported audio languages.
currentAudioLanguage
Read/write
Gets or sets the locale identifier (LCID) of the audio language for playback.
currentAudioLanguageIndex
Read/write
Gets or sets the one-based index that corresponds to the audio language for playback.
currentPositionTimecode
Read/write
Gets or sets the current position in the current media item using a time code format. This property currently supports SMPTE time code.

Get an IWMPControls3 interface by casting the value returned by the AxWindowsMediaPlayer.Ctlcontrols property.

Requirements

Requirement Value
Header
Wmp.h

See also

Interfaces for Visual Basic .NET and C#

IWMPControls Interface (VB and C#)

IWMPControls2 Interface (VB and C#)