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.
| Method | Description |
|---|---|
| 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.
- For media sources, get the media-type handler from the stream descriptor by calling IMFStreamDescriptor::GetMediaTypeHandler.
- For media sinks, get the media-type handler by calling IMFStreamSink::GetMediaTypeHandler.
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 |
|
|
Library |
|
See also