Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IMFSourceReaderCallback::OnEvent method

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

Syntax


HRESULT OnEvent(
  [in] DWORD         dwStreamIndex,
  [in] IMFMediaEvent *pEvent
);

Parameters

dwStreamIndex [in]

For stream events, the value is the zero-based index of the stream that sent the event. For source events, the value is MF_SOURCE_READER_MEDIASOURCE.

pEvent [in]

A pointer to the IMFMediaEvent interface of the event.

Return value

Returns an HRESULT value. Currently, the source reader ignores the return value.

Remarks

In the current implementation, the source reader uses this method to forward the following events to the application:

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

Source Reader
IMFSourceReaderCallback

 

 

Show:
© 2017 Microsoft