Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IMFHttpDownloadSession interface

Applications implement this interface to override the default implementation of the HTTP and HTTPS protocols used by Microsoft Media Foundation. Applications provide the IMFHttpDownloadSession interface to Media Foundation through the CreateHttpDownloadSession method on the IMFHttpDownloadSessionProvider interface. Microsoft Media Foundation uses this interface to perform a “streaming”, or “progressive”, download of a resource identified by a HTTP or HTTPS URL. Multiple HTTP requests may be sent to download the resource. The IMFHttpDownloadSession interface is used to create these individual HTTP requests.

Members

The IMFHttpDownloadSession interface inherits from the IUnknown interface. IMFHttpDownloadSession also has these types of members:

Methods

The IMFHttpDownloadSession interface has these methods.

MethodDescription
Close

Invoked by Microsoft Media Foundation to specify that no more HTTP requests will be created, and allows IMFHttpDownloadSession to free any internal resources.

CreateRequest

Invoked by Microsoft Media Foundation to create an object that implements the IMFHttpDownloadRequest interface, which is used to send a single HTTP, or HTTPS request. Since multiple requests may be needed to fully download a resource, Media Foundation may invoke CreateRequest multiple times on the same IMFHttpDownloadSession instance. Media Foundation will use each IMFHttpDownloadRequest instance for only a single request.

SetServer

Called by Microsoft Media Foundation to specify parameters common to all requests created by this instance of IMFHttpDownloadSession.

 

Requirements

Minimum supported client

Windows 10, version 1703 [desktop apps only]

Minimum supported server

None supported

Header

Mfobjects.h

Library

Mfplat.lib;
Mfplat.dll

 

 

Show:
© 2017 Microsoft