Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

MFCreateSourceReaderFromURL function

Creates the source reader from a URL.

Syntax


HRESULT MFCreateSourceReaderFromURL(
  _In_  LPCWSTR         pwszURL,
  _In_  IMFAttributes   *pAttributes,
  _Out_ IMFSourceReader **ppSourceReader
);

Parameters

pwszURL [in]

The URL of a media file to open.

pAttributes [in]

Pointer to the IMFAttributes interface. You can use this parameter to configure the source reader. For more information, see Source Reader Attributes. This parameter can be NULL.

ppSourceReader [out]

Receives a pointer to the IMFSourceReader interface. The caller must release the interface.

Return value

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

Remarks

Call CoInitialize(Ex) and MFStartup before calling this function.

Internally, the source reader calls the IMFSourceResolver::CreateObjectFromURL method to create a media source from the URL.

This function is available on Windows Vista if Platform Update Supplement for Windows Vista is installed.

Windows Phone 8.1: This API is supported.

Requirements

Minimum supported client

Windows 7, Windows Vista and Platform Update Supplement for Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | Windows Store apps]

Header

Mfreadwrite.h

Library

Mfreadwrite.lib

DLL

Mfreadwrite.dll

See also

Media Foundation Functions
Source Reader

 

 

Community Additions

ADD
Show:
© 2015 Microsoft