Expand Minimize

IMFSourceReaderCallback interface

Callback interface for the Microsoft Media Foundation source reader.

When to implement

Implement this interface if you use the IMFSourceReader interface and want to receive asynchronous notifications.

Members

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

Methods

The IMFSourceReaderCallback interface has these methods.

MethodDescription
OnEvent

Called when the source reader receives certain events from the media source.

OnFlush

Called when the IMFSourceReader::Flush method completes.

OnReadSample

Called when the IMFSourceReader::ReadSample method completes.

 

Remarks

Use the MF_SOURCE_READER_ASYNC_CALLBACK attribute to set the callback pointer when you first create the source reader object.

The callback methods can be called from any thread, so an object that implements this interface must be thread-safe.

If you do not specify a callback pointer, the source reader operates synchronously.

This interface is available on Windows Vista if Platform Update Supplement for Windows Vista is installed.

Requirements

Minimum supported client

Windows 7, Windows Vista and Platform Update Supplement for Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | Windows Store apps]

Header

Mfreadwrite.h

See also

Media Foundation Interfaces
Source Reader
Using the Source Reader in Asynchronous Mode

 

 

Community Additions

ADD
Show:
© 2014 Microsoft