ClosedCaption Object
The ClosedCaption object provides a way to include captions with a media clip. The captioning text is in a Synchronized Accessible Media Interchange (SAMI) file.
The ClosedCaption object supports the following properties.
| Property | Description |
|---|---|
| captioningID | Specifies or retrieves the name of the frame or control displaying the captioning. |
| SAMIFileName | Specifies or retrieves the name of the file containing the information needed for closed captioning. |
| SAMILang | Specifies or retrieves the language displayed for closed captioning. |
| SAMILangCount | Retrieves the number of languages supported by the current SAMI file. |
| SAMIStyle | Specifies or retrieves the closed captioning style. |
| SAMIStyleCount | Retrieves the number of styles supported by the current SAMI file. |
The ClosedCaption object supports the following methods.
| Method | Description |
|---|---|
| getSAMILangID | Retrieves the locale identifier (LCID) of a language supported by the current SAMI file. |
| getSAMILangName | Retrieves the name of a language supported by the current SAMI file. |
| getSAMIStyleName | Retrieves the name of a style supported by the current SAMI file. |
The ClosedCaption object is accessed through the following property.
| Object | Property |
|---|---|
| Player | closedCaption |
See also
Send comments about this topic to Microsoft
Build date: 11/9/2012