Share via


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

Windows Media Player SDK banner art

Previous Next

IWMPClosedCaption.SAMIFileName (VB and C#)

The SAMIFileName property gets or sets the name of a file containing the information needed for closed captioning.

[Visual Basic]
Property SAMIFileName As String

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

Property Value

The System.String that is the name of the Synchronized Accessible Media Interchange (SAMI) file.

Remarks

The SAMI file must use an .smi or .sami file name extension.

If you do not set a value using SAMIFileName, this property gets a string containing the default file name or URL associated with the current media item. This association can occur when a SAMI file is specified by using the sami URL parameter, or automatically when the SAMI file has the same name as the digital media file (except for the file name extension). If there is no default SAMI file associated with the current media, this property gets a zero-length string ("").

Once you set a value using SAMIFileName, that value persists until you set a new value (or until a new media item is opened using the sami URL parameter). Therefore, you must set a new value for this property before you play each new media item. That way, the new value for SAMIFileName will take effect when the next media item is opened (or when AxWindowsMediaPlayer.close is called). Specifying a new value for SAMIFileName has no effect for the current media.

To cause Windows Media Player to use the default SAMI file associated with a particular media item, set SAMIFileName to a zero-length string ("") before you play the next media item.

Requirements

Version: Windows Media Player 9 Series or later

Namespace: WMPLib

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

See Also

Previous Next