Compartir a través de


IWMReaderCallbackAdvanced interface (wmsdkidl.h)

[The feature associated with this page, Windows Media Format 11 SDK, is a legacy feature. It has been superseded by Source Reader and Sink Writer. Source Reader and Sink Writer have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Source Reader and Sink Writer instead of Windows Media Format 11 SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The IWMReaderCallback interface is implemented by the application to handle data being read from a file.

Inheritance

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

Methods

The IWMReaderCallbackAdvanced interface has these methods.

 
IWMReaderCallbackAdvanced::AllocateForOutput

The AllocateForOutput method allocates user-created buffers for samples delivered to IWMReaderCallback::OnSample. For more information about allocating your own buffers, see User Allocated Sample Support.
IWMReaderCallbackAdvanced::AllocateForStream

The AllocateForStream method allocates user-created buffers for stream samples delivered to IWMReaderCallbackAdvanced::OnStreamSample. For more information about allocating your own buffers, see User Allocated Sample Support.
IWMReaderCallbackAdvanced::OnOutputPropsChanged

The OnOutputPropsChanged method indicates that the media properties for the specified output have changed. This change occurs as a result of a call to the IWMReader::SetOutputProps method.
IWMReaderCallbackAdvanced::OnStreamSample

The OnStreamSample method delivers stream samples from the source file without decompressing them first.
IWMReaderCallbackAdvanced::OnStreamSelection

The OnStreamSelection method notifies the application of stream changes made due to bandwidth restrictions. To have this method called, call IWMReaderAdvanced::SetReceiveSelectionCallbacks.
IWMReaderCallbackAdvanced::OnTime

The OnTime method notifies the application of the clock time the reader is working to. This method is used when a user-provided clock has been specified.

Requirements

Requirement Value
Target Platform Windows
Header wmsdkidl.h

See also

IWMReader Interface

IWMReaderAdvanced Interface

IWMReaderCallback Interface

Interfaces

Reader Object

Reading ASF Files