Skip to main content
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.

Members

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

Methods

The IWMMediaProps interface has these methods.

MethodDescription
GetMediaType

Retrieves a WM_MEDIA_TYPE structure describing the media type.

GetType

Retrieves the major type of the media (audio, video, or script).

SetMediaType

Specifies a WM_MEDIA_TYPE structure describing the media type.

 

For information about which interfaces can be obtained by using the QueryInterface method of this interface, see the topic for the object on which this interface is implemented.

See also

Interfaces
Stream Configuration Object
Input Media Properties Object
Output Media Properties Object