Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
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 |