IMFNetResourceFilter interface
Notifies the application when a byte stream requests a URL, and enables the application to block URL redirection.
When to implement
The Media Foundation HTTP byte stream supports this callback interface. Implement this interface if you want to be notified of the URLs that the byte stream requests, or want to block URL redirection.
Members
The IMFNetResourceFilter interface inherits from the IUnknown interface. IMFNetResourceFilter also has these types of members:
Methods
The IMFNetResourceFilter interface has these methods.
| Method | Description |
|---|---|
| OnRedirect |
Called when the byte stream redirects to a URL. |
| OnSendingRequest |
Called when the byte stream requests a URL. |
Remarks
To set the callback interface:
- Query the byte stream object for the IMFAttributes interface.
- Call IMFAttributes::SetUnknown to set the MFNETSOURCE_RESOURCE_FILTER attribute.
Requirements
|
Minimum supported client |
Windows 8 [desktop apps only] |
|---|---|
|
Minimum supported server |
None supported |
|
Header |
|
See also