Export (0) Print
Expand All

IMFMediaTypeHandler interface

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

Members

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

Methods

The IMFMediaTypeHandler interface has these methods.

MethodDescription
GetCurrentMediaType

Retrieves the current media type of the object.

GetMajorType

Retrieves the major media type of the object.

GetMediaTypeByIndex

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

GetMediaTypeCount

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

IsMediaTypeSupported

Queries whether the object supports a specified media type.

RemoteGetCurrentMediaType

Remotable version of GetCurrentMediaType. (Not used by applications.)

SetCurrentMediaType

Sets the object 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

Minimum supported client

Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]

Header

Mfidl.h

Library

Mfuuid.lib

See also

Media Foundation Interfaces
Media Types
Presentation Descriptors

 

 

Community Additions

ADD
Show:
© 2014 Microsoft