Skip to main content
Output Media Properties Object

An output media properties object is used to retrieve and set an output property. Output media properties objects are created for supported output formats of streams in a file that is loaded into a reader object. For compressed streams, the output properties are determined by the possible outputs of the decompressing codec.

An output media properties object is created by IWMReader::GetOutputProps This method creates an output media properties object that contains the properties of the default output format. Other formats may be supported for an output. To obtain additional output formats, you can call IWMReader::GetOutputFormatCount to get the number of supported output formats and then loop through them using calls to IWMReader::GetOutputFormat. GetOutputFormat creates an output media properties object populated with the data for the selected output format.

Output media properties objects can also be created with the synchronous reader. All of the method names are identical to those in the reader and they are all exposed by the IWMSyncReader interface.

GetOutputProps and GetOutputFormat both set a pointer to an IWMOutputMediaProps interface. The other interfaces of the output media properties object can be obtained by calling the QueryInterface method.

The following interfaces are supported by every output media properties object.

Interface Description
IWMMediaProps Used as the base interface for the other media-property interfaces (input, output, and video).
IWMOutputMediaProps Retrieves the properties of an output.
IWMVideoMediaProps Manages the properties of a video stream. This is an optional interface, available only for video streams.

 

Related topics

Objects
Reader Object