Skip to content

RawCaptureAsyncEvent

property

Delphi
property RawCaptureAsyncEvent: Boolean read GetRawCaptureAsyncEvent write SetRawCaptureAsyncEvent  default DEF_RawCaptureAsyncEvent;
C++Builder
__property bool RawCaptureAsyncEvent = {read=GetRawCaptureAsyncEvent, write=SetRawCaptureAsyncEvent, default=1};
C#
public bool RawCaptureAsyncEvent { get; set; }
VB.NET
Public Property RawCaptureAsyncEvent As Boolean
C++/Qt
BOOL GetRawCaptureAsyncEvent ();
void SetRawCaptureAsyncEvent (BOOL Value);

Specifies whether sample captures are returned synchronously or asynchronously by the OnRawVideoSample or OnRawAudioSample events.

By default, this property is enabled and the samples are returned asynchronously. This means that samples are captured internally when they travel through the video stream and returned later by the events.

When this property is disabled, the samples are returned synchronously. This means that the video stream waits for the capture events to complete.

In this case, process the samples as fast as possible and do not perform any actions with the potential to block, such as holding a critical section or waiting on another thread. Also, do not call any GDI or USER32.DLL APIs that might cause a window to move.