Jegyzet
Az oldalhoz való hozzáférés engedélyezést igényel. Próbálhatod be jelentkezni vagy könyvtárat váltani.
Az oldalhoz való hozzáférés engedélyezést igényel. Megpróbálhatod a könyvtár váltását.
Called when the capture sink receives a sample.
Syntax
HRESULT OnSample(
[in, optional] IMFSample *pSample
);
Parameters
[in, optional] pSample
A pointer to the IMFSample interface. Use this interface to get the time stamp, duration, and stream data. For more information, see Media Samples. This parameter can be NULL, so make sure to check for a NULL value before you dereference the pointer.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 8 [desktop apps only] |
| Minimum supported server | Windows Server 2012 [desktop apps only] |
| Target Platform | Windows |
| Header | mfcaptureengine.h |