Freigeben über


IMFMediaTypeHandler Interface

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

Mitglieder

IMFMediaTypeHandlerSchnittstelle erbt von der IUnknown-Schnittstelle. IMFMediaTypeHandler umfasst auch die folgenden Typen von Mitgliedern:

  • Methoden

Methoden

IMFMediaTypeHandlerSchnittstelle umfasst die folgenden Methoden.

Methode Beschreibung
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.

 

Hinweise

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 mit Service Pack 2 (SP2) und höher.
  • Windows XP Media Center Edition 2005 with KB900325 (Windows XP Media Center Edition 2005) and KB925766 (Oktober 2006 Updaterollup für Windows XP Media Center Edition) installed.

Anforderungen

Mindestens unterstützter Client

Windows Vista

Mindestens unterstützter Server

Windows Server 2008

Header

Mfidl.h

Bibliothek

Mfuuid.lib

Siehe auch

Media Foundation Interfaces

Media Types

Presentation Descriptors