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.

Properties

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

Methods

HRESULT GetTrackIndexByID(LONG trackid, LONG *index);

Description

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

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.

Returns

Return Description
S_OK Successful.
< 0 An error occurred.

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

Description

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

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.

Returns

Return Description
S_OK Successful.
< 0 An error occurred.
E_INVALIDARG The track is not in the Tracks list.

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

Description

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

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.

Returns

Return Description
S_OK Successful.
< 0 An error occurred.
E_INVALIDARG The track is not in the Tracks list.
Help Version 22.0.2023.2.15
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 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.