ILMSubtitleTrackList Interface

Represents a list of subtitle tracks. Call the ILMDmxSubtitle interface to get track lists from a demultiplexer, or the ILMMuxSubtitle interface to get track lists from a multiplexer.

Interface Properties

Type Name Description
LONG Count A read-only property that represents number of tracks contained in the list.

Interface Methods

HRESULT GetTrackIndexByID(LONG trackid, LONG *index);

Parameters

trackid A long value that specifies which track identifier in the list to retrieve.
index A pointer to a long variable that receives the index of the track. A value of -1 is returned if the list does not contain a track with the specified identifier.

Description

Gets the list index of a track for the specified track identifier.

Returns

S_OK if successful; < 0 if an error occurred.

HRESULT GetTrackByID(LONG trackid, ILMSubtitleTrack **track);

Parameters

trackid A long value that specifies which track identifier in the list to retrieve.
track A pointer to a variable that receives a pointer to the IMFSubtitleTrack interface for the track.

Description

Gets an ILMSubtitleTrack interface for a track, using the track identifier.

Returns

S_OK if successful; < 0 if an error occurred.

Common Error Codes:

E_INVALIDARG

The track is not in the Tracks list.

HRESULT GetTrack(LONG index, ILMSubtitleTrack **track);

Parameters

index A long value that specifies the index of the track in the list to retrieve.
track A pointer to a variable that receives a pointer to the IMFSubtitleTrack interface for the track.

Description

Gets the ILMSubtitleTrack interface for a track, using the track list index.

Returns

S_OK if successful; < 0 if an error occurred.

Common Error Codes

E_INVALIDARG

The track is not in the Tracks list.

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Filters C API Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.