ILMDmxSubtitleCallback Interface

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.

Data Types

LMSubtitle_Cue_Event

Summary

Lists the possible cue events.

Syntax

typedef enum  
{ 
   LMSubtitle_Cue_Event_Active, 
   LMSubtitle_Cue_Event_Inactive, 
   LMSubtitle_Cue_Event_Clear, 
 
} LMSubtitle_Cue_Event; 

Members

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.

Methods

HRESULT Cue(LMSubtitle_Cue_Event cueevent, DOUBLE currenttime, ILMSubtitleCue *cue);

Description

Called when a cue event occurs in a text track.

Parameters

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.

Comments

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.

Returns

Return Description
S_OK Successful
< 0 An error occurred.
Help Version 23.0.2024.9.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Filters C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.