Compartir a través de


IWMPClosedCaption (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 a way to include captions with a digital media file. The captioning text is in a Synchronized Accessible Media Interchange (SAMI) file.

Members

The IWMPClosedCaption (VB and C#) interface does not define any members.

The IWMPClosedCaption interface exposes the following properties.

Property Description
captioningId Gets or sets the name of the HTML element displaying the captioning.
SAMIFileName Gets or sets the name of the file containing the information needed for closed captioning.
SAMILang Gets or sets the language displayed for closed captioning.
SAMIStyle Gets or sets the closed captioning style.

Get an IWMPClosedCaption interface by using the following property.

Object Property
AxWindowsMediaPlayer closedCaption

Requirements

Requirement Value
Header
Wmp.h

See also

Adding Closed Captions to Digital Media

Interfaces for Visual Basic .NET and C#

IWMPClosedCaption2 Interface (VB and C#)