Note
Kailangan ng pahintulot para ma-access ang page na ito. Maaari mong subukang mag-sign in o magpalit ng mga direktoryo.
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang baguhin ang mga direktoryo.
Called when the source reader receives certain events from the media source.
Syntax
HRESULT OnEvent(
[in] DWORD dwStreamIndex,
[in] IMFMediaEvent *pEvent
);
Parameters
[in] dwStreamIndex
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.
[in] pEvent
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:
- MEBufferingStarted
- MEBufferingStopped
- MEConnectEnd
- MEConnectStart
- MEExtendedType
- MESourceCharacteristicsChanged
- MESourceMetadataChanged
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 7, Windows Vista and Platform Update Supplement for Windows Vista [desktop apps | UWP apps] |
| Minimum supported server | Windows Server 2008 R2 [desktop apps | UWP apps] |
| Target Platform | Windows |
| Header | mfreadwrite.h |