IWMMediaProps interface

The IWMMediaProps interface sets and retrieves the WM_MEDIA_TYPE structure for an input, stream, or output.

In the case of inputs and streams, the contents of the media type structure determine what actions the writer object will perform on the input data when writing the file. Typically, the input media type is an uncompressed type and the stream is a compressed type, so that the contents of their respective media type structures will determine the settings passed by the writer to the codec that will compress the stream.

In the case of outputs, the media type structure determines the settings used to decompress the contents of a stream. The Windows Media codecs are capable of delivering output content in a variety of formats.

The methods of IWMMediaProps are inherited by IWMVideoMediaProps, which provides access to additional settings for specifying video media types. The methods are also inherited by IWMInputMediaProps and IWMOutputMediaProps.

An instance of the IWMMediaProps interface exists for every stream configuration object, input media properties object, and output media properties object. You can retrieve a pointer to this interface by calling the QueryInterface method of any other interface in one of those objects.

Methods

The IWMMediaProps interface has these methods.

Method Description
IWMMediaProps::GetMediaType The GetMediaType method retrieves a structure describing the media type.
IWMMediaProps::GetType The GetType method retrieves the major type of the media in the stream, input, or output described by the object to which the current IWMMediaProps interface belongs.
IWMMediaProps::SetMediaType The SetMediaType method specifies the media type.

Requirements

   
Target Platform Windows
Header wmsdkidl.h

See also

Input Media Properties Object

Interfaces

Output Media Properties Object

Stream Configuration Object