IMFMediaTypeHandler interface (mfidl.h)

Gets and sets media types on an object, such as a media source or media sink.

Inheritance

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

Methods

The IMFMediaTypeHandler interface has these methods.

 
IMFMediaTypeHandler::GetCurrentMediaType

Retrieves the current media type of the object.
IMFMediaTypeHandler::GetMajorType

Gets the major media type of the object.
IMFMediaTypeHandler::GetMediaTypeByIndex

Retrieves a media type from the object's list of supported media types.
IMFMediaTypeHandler::GetMediaTypeCount

Retrieves the number of media types in the object's list of supported media types.
IMFMediaTypeHandler::IsMediaTypeSupported

Queries whether the object supports a specified media type.
IMFMediaTypeHandler::SetCurrentMediaType

Sets the object's media type.

Remarks

This interface is exposed by media-type handlers.

If you are implementing a custom media source or media sink, you can create a simple media-type handler by calling MFCreateSimpleTypeHandler, or you can provide your own implementation.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows XP with Service Pack 2 (SP2) and later.
  • Windows XP Media Center Edition 2005 with KB900325 (Windows XP Media Center Edition 2005) and KB925766 (October 2006 Update Rollup for Windows XP Media Center Edition) installed.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header mfidl.h

See also

Media Foundation Interfaces

Media Types

Presentation Descriptors