Share via


Closed Captioning

Windows Media Player SDK banner art

The Windows Media Player control provides an easy means of adding closed captioning to your media presentation. Windows Media Player supports Synchronized Accessible Media Interchange (SAMI) for closed captioning. SAMI (.smi) files contain text strings associated with specified times within the presentation. The text strings appear in the Windows Media Player closed captioning display area as the clip reaches the designated times.

SAMI files can also include conditional text strings for providing closed captioning in different languages, as well as changeable fonts and font sizes to customize the captioning for specific audiences.

The SAMI Closed Captioning Sample shows how you can add closed captioning to your content with .smi files

The Windows Media Player control supports the following properties for SAMI captioning.

  • The SAMIFileName property specifies the name of the .smi file containing the closed captioning text strings.
  • The SAMILang property specifies the closed captioning language. If this property is not set, the language used is the one associated with the first language tag in the .smi file.
  • The SAMIStyle property specifies the font size and style used for the closed captioning.
  • The ShowCaptioning property determines whether the closed captioning display panel is visible.