IMFTimedText::AddDataSource method (mfmediaengine.h)
Adds a timed-text data source.
Syntax
HRESULT AddDataSource(
[in] IMFByteStream *byteStream,
[in, optional] LPCWSTR label,
[in, optional] LPCWSTR language,
[in] MF_TIMED_TEXT_TRACK_KIND kind,
[in] BOOL isDefault,
[out] DWORD *trackId
);
Parameters
[in] byteStream
Type: IMFByteStream*
A pointer to the IMFByteStream interface for the data source to add.
[in, optional] label
Type: LPCWSTR
Null-terminated wide-character string that contains the label of the data source.
[in, optional] language
Type: LPCWSTR
Null-terminated wide-character string that contains the language of the data source.
[in] kind
Type: MF_TIMED_TEXT_TRACK_KIND
A MF_TIMED_TEXT_TRACK_KIND-typed value that specifies the kind of timed-text track.
[in] isDefault
Type: BOOL
Specifies whether to add the default data source. Specify TRUE to add the default data source or FALSE otherwise.
[out] trackId
Type: DWORD*
Receives a pointer to the unique identifier for the added 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 |