Share via


Windows Media Player 11 SDK IWMPClosedCaption.SAMILang (VB and C#) 

Windows Media Player SDK banner art

Previous Next

IWMPClosedCaption.SAMILang (VB and C#)

The SAMILang property gets or sets the language displayed for closed captioning.

[Visual Basic]
Property SAMILang As String

[C#]
string SAMILang {get; set;}

Property Value

The System.String that is the name specified in the language identifier of a SAMI file.

Remarks

A SAMI file can contain text for one or many languages. The languages available for closed captioning are defined between the <STYLE> and </STYLE> tags in the SAMI file. A language identifier is specified with a unique alphanumeric string that is preceded by a period (.). The name specified for a language can be any string. For example, the following could be used to define US English:

.ENUSCC {Name:'English Captions' lang: en-US; SAMIType:CC;}

If no SAMI language is specified, the first language defined in the SAMI file is used by default.

The string you set using SAMILang must match the Name attribute in the language specifier.

Requirements

Version: Windows Media Player 9 Series or later

Namespace: WMPLib

Assembly: Interop.WMPLib.dll (automatically generated by Visual Studio)

See Also

Previous Next