IMFMediaEngineSrcElementsEx::AddElementEx method (mfmediaengine.h)

Provides an enhanced version of IMFMediaEngineSrcElements::AddElement to add the key system intended to be used with content to an element.

Syntax

HRESULT AddElementEx(
  BSTR pURL,
  BSTR pType,
  BSTR pMedia,
  BSTR keySystem
);

Parameters

pURL

The URL of the source element, or NULL.

pType

The MIME type of the source element, or NULL.

pMedia

A media-query string that specifies the intended media type, or NULL. If specified, the string should conform to the W3C Media Queries specification.

keySystem

The media key session.

Return value

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

Requirements

Requirement Value
Minimum supported client Windows 8.1 [desktop apps only]
Minimum supported server Windows Server 2012 R2 [desktop apps only]
Target Platform Windows
Header mfmediaengine.h

See also

IMFMediaEngineSrcElementsEx