IMFTimedText::AddDataSourceFromUrl method (mfmediaengine.h)
Adds a timed-text data source from the specified URL.
Syntax
HRESULT AddDataSourceFromUrl(
[in] LPCWSTR url,
[in, optional] LPCWSTR label,
[in, optional] LPCWSTR language,
[in] MF_TIMED_TEXT_TRACK_KIND kind,
[in] BOOL isDefault,
[out] DWORD *trackId
);
Parameters
[in] url
Type: LPCWSTR
The URL of the timed-text data source.
[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 |
---|---|
Target Platform | Windows |
Header | mfmediaengine.h |
Library | Mfmediaengine.lib |
DLL | Mfmediaengine.dll |