IWMPClosedCaption interface (wmp.h)

[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.]

The IWMPClosedCaption interface provides a way to include captions with a digital media file. The captioning text is in a Synchronized Accessible Media Interchange (SAMI) file.

Inheritance

The IWMPClosedCaption interface inherits from the IDispatch interface. IWMPClosedCaption also has these types of members:

Methods

The IWMPClosedCaption interface has these methods.

 
IWMPClosedCaption::get_captioningId

The get_captioningId method retrieves the name of the element displaying the captioning.
IWMPClosedCaption::get_SAMIFileName

The get_SAMIFileName method retrieves the name of the file containing the information needed for closed captioning.
IWMPClosedCaption::get_SAMILang

The get_SAMILang method retrieves the language displayed for closed captioning.
IWMPClosedCaption::get_SAMIStyle

The get_SAMIStyle method retrieves the closed captioning style.
IWMPClosedCaption::put_captioningId

The put_captioningId method specifies the name of the element displaying the captioning.
IWMPClosedCaption::put_SAMIFileName

The put_SAMIFileName method specifies the name of the file containing the information needed for closed captioning.
IWMPClosedCaption::put_SAMILang

The put_SAMILang method specifies the language displayed for closed captioning.
IWMPClosedCaption::put_SAMIStyle

The put_SAMIStyle method specifies the closed captioning style.

Requirements

Requirement Value
Target Platform Windows
Header wmp.h

See also

IWMPClosedCaption2 Interface

Interfaces