The ILMMuxSubtitle interface is exposed by multiplexers, and is used to add subtitle streams to the multiplexer's output.
For an overview of how to use the ILMMuxSubtitle interface, refer to Displaying Subtitles.
Type | Name | Description |
---|---|---|
Tracks | A read-only property that contains the list of all tracks. | |
TextTracks | A read-only property that contains a list of all text tracks. |
discard | A VARIANT_BOOL value that indicates whether to discard all changes made during edit mode. A value of VARIANT_TRUE discards all changes. A value of VARIANT_FALSE will keep the changes. |
Exits the edit mode. Set discard to VARIANT_TRUE to undo all changes made while in edit mode.
S_OK if successful, < 0 if an error occurred.
VFW_E_WRONG_STATE |
The graph is not stopped. |
Enters edit mode. Call this function before making changes to the tracks.
S_OK if successful, < 0 if an error occurred.
VFW_E_WRONG_STATE |
The graph is not stopped. |
trackid | A long value that contains the track identifier. |
Removes the specified track.
S_OK if successful; < 0 if an error occurred.
E_INVALIDARG |
The track is not in the Tracks list. |
path | A string value containing the path to the subtitle file. |
label | A string value containing the track label. |
language | A string value containing the RFC 5646 language code for the track. |
trackid | A pointer to a long variable that receives the new track identifier. |
Adds a text track from a file. Currently, only the SubRip (*.srt) format is supported.
S_OK if successful; < 0 if an error occurred.
VFW_E_INVALID_FILE_FORMAT |
The file format is not valid. |