IMFTimedTextTrackList::GetTrackById method (mfmediaengine.h)

Gets a text track in the list from the identifier of the track.

Syntax

HRESULT GetTrackById(
  [in]  DWORD             trackId,
  [out] IMFTimedTextTrack **track
);

Parameters

[in] trackId

Type: DWORD

The identifier of the track in the list to retrieve.

[out] track

Type: IMFTimedTextTrack**

A pointer to a memory block that receives a pointer to the IMFTimedTextTrack interface for the timed-text track.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 10 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header mfmediaengine.h

See also

IMFTimedTextTrackList