Share via


IWMPClosedCaption2 (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 closed captioning that supplement the IWMPClosedCaption interface.

In addition to the properties inherited from IWMPClosedCaption, the IWMPClosedCaption2 interface exposes the following properties.

Members

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

Methods

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

Method Description
getSAMILangID Returns the locale identifier (LCID) of a language supported by the current SAMI file.
getSAMILangName Returns the name of a language supported by the current SAMI file.
getSAMIStyleName Returns the name of a style supported by the current SAMI file.

Properties

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

Property Access type Description
SAMILangCount
Read/write
Gets or sets the number of languages supported by the current SAMI file.
SAMIStyleCount
Read/write
Gets or sets the number of styles supported by the current SAMI file.

Get an IWMPClosedCaption2 interface by casting the value returned by the AxWindowsMediaPlayer.closedCaption property.

Requirements

Requirement Value
Header
Wmp.h

See also

Adding Closed Captions to Digital Media

Interfaces for Visual Basic .NET and C#

IWMPClosedCaption Interface (VB and C#)