IWMReader interface
The IWMReader interface is used to open, close, start, pause, resume, and unlock the WMReader object. It is also used to stop reading files, and to get and set the output properties.
Many of the methods in this interface are asynchronous and send status notifications to the application through an IWMStatusCallback::OnStatus method implemented in the application.
Members
The IWMReader interface inherits from the IUnknown interface. IWMReader also has these types of members:
Methods
The IWMReader interface has these methods.
| Method | Description |
|---|---|
| Close |
Deletes all outputs on the reader and releases the file resources. |
| GetOutputCount |
Retrieves the number of uncompressed media streams sent from the reader. |
| GetOutputFormat |
Retrieves the supported formats for a specified output media stream. |
| GetOutputFormatCount |
Retrieves the number of format types supported by this output media stream on the reader. |
| GetOutputProps |
Retrieves the current properties of an uncompressed output stream. |
| Open |
Opens an ASF file for reading. |
| Pause |
Pauses the current read operation. |
| Resume |
Restarts read operation from the current time offset. |
| SetOutputProps |
Specifies the properties of an uncompressed output stream. |
| Start |
Starts reading from the current time offset. Uncompressed data is passed to IWMReaderCallback::OnSample. |
| Stop |
Stops reading, after which there is no current read position. |
For information about which interfaces can be obtained by using the QueryInterface method of this interface, see Reader Object.
See also
- Interfaces
- IWMReaderAdvanced Interface
- IWMReaderAdvanced2 Interface
- IWMReaderAdvanced3 Interface
- IWMReaderAdvanced4 Interface
- IWMReaderCallback Interface
- IWMReaderCallbackAdvanced Interface
- Reading ASF Files
Send comments about this topic to Microsoft
Build date: 10/27/2012
