Skip to content

Latest commit

 

History

History
54 lines (39 loc) · 4.24 KB

File metadata and controls

54 lines (39 loc) · 4.24 KB
title description ms.assetid keywords ms.topic ms.date
AVICap Callback Functions
AVICap Callback Functions
d238a238-9702-4ba6-92bd-5ef1605b4983
AVICap class,callback functions
AVICap callback functions,about
WM_CAP_SET_CALLBACK_CAPCONTROL message
WM_CAP_SET_CALLBACK_ERROR message
WM_CAP_SET_CALLBACK_FRAME message
WM_CAP_SET_CALLBACK_STATUS message
WM_CAP_SET_CALLBACK_VIDEOSTREAM message
WM_CAP_SET_CALLBACK_WAVESTREAM message
WM_CAP_SET_CALLBACK_YIELD message
capSetCallbackOnCapControl macro
capSetCallbackOnErrormacro
capSetCallbackOnFrame macro
capSetCallbackOnStatus macro
capSetCallbackOnVideoStream macro
capSetCallbackOnWaveStream macro
capSetCallbackOnYield macro
reference
05/31/2018

AVICap Callback Functions

Your application can register callback functions with a capture window to have it notify your application when the status changes, when errors occur, when video frame and audio buffers become available, and to yield during streaming capture. The following messages set the callback function.

Message Description
WM_CAP_SET_CALLBACK_CAPCONTROL Specifies the callback function in the application called to give precise control over capture start and end. You can also use the capSetCallbackOnCapControl macro to send this message.
WM_CAP_SET_CALLBACK_ERROR Specifies the callback function in the application called when an error occurs. You can also use the capSetCallbackOnError macro to send this message.
WM_CAP_SET_CALLBACK_FRAME Specifies the callback function in the application called when preview frames are captured. You can also use the capSetCallbackOnFrame macro to send this message.
WM_CAP_SET_CALLBACK_STATUS Specifies the callback function in the application called when the status changes. You can also use the capSetCallbackOnStatus macro to send this message.
WM_CAP_SET_CALLBACK_VIDEOSTREAM Specifies the callback function in the application called during streaming capture when a new video buffer becomes available. You can also use the capSetCallbackOnVideoStream macro to send this message.
WM_CAP_SET_CALLBACK_WAVESTREAM Specifies the callback function in the application called during streaming capture when a new audio buffer becomes available. You can also use the capSetCallbackOnWaveStream macro to send this message.
WM_CAP_SET_CALLBACK_YIELD Specifies the callback function in the application called when yielding during streaming capture. You can also use the capSetCallbackOnYield macro to send this message.

 

The following topics describe the different callback functions, the notifications sent to the functions, and their uses.