To Read Windows Media Files
- Create an IWMReader object.
- Call Open with a URL (possibly a local file name) and a user-supplied callback. After Open is completed, the file is opened and parsed. This interface uses QueryInterface to access the IWMHeaderInfo, IWMProfile and IWMReaderAdvanced interfaces. Open is an asynchronous call; it returns almost immediately (if the URL is valid), and the user should wait for appropriate OnStatus calls to be sent to the callback. The Open method returns the WMT_OPENED status message to the callback.
- Call GetOutputCount and GetOutputProps to get the format for each output.
- Call Start. Status messages and samples will then begin arriving in the callback function.
- Continue with any combination of the methods Start, Stop, and Pause until the reading and writing operations are finished.
See Also
© 1999 Microsoft Corporation. All rights reserved.