User-supplied interface that receives notifications. The ILMDmxSubtitleCallback interface is assigned to the ILMDmxSubtitle.Callback property.
For an overview of implementing this interface, refer to Displaying Subtitles.
typedef enum
{
LMSubtitle_Cue_Event_Active,
LMSubtitle_Cue_Event_Inactive,
LMSubtitle_Cue_Event_Clear,
} LMSubtitle_Cue_Event;
Lists the possible cue events.
Name | Description |
---|---|
LMSubtitle_Cue_Event_Active | Indicates that the specified cue should be displayed. |
LMSubtitle_Cue_Event_Inactive | Indicates that the specified cue should be hidden. |
LMSubtitle_Cue_Event_Clear | Indicates that all cues should be hidden. The currenttime and cue callback parameters are not valid during this event. |
cueevent | An LMSubtitle_Cue_Event enumeration value that indicates which type of event has occurred. |
currenttime | A double value that contains the time, in seconds, when the event occurred. |
cue | An ILMSubtitleCue interface pointer that represents the cue. |
Called when a cue event occurs in a text track.
Care must be taken when accessing the parameters of this method. If cueevent is LMSubtitle_Cue_Event_Clear, then currenttime is 0 and cue is null.
S_OK if successful; < 0 if an error occurred.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document