OnRecordingReadyToStart
property OnRecordingReadyToStart: TOnEventNotification read FOnRecordingReadyToStart write FOnRecordingReadyToStart;
__property TOnEventNotification OnRecordingReadyToStart = {read=FOnRecordingReadyToStart, write=FOnRecordingReadyToStart};
typedef void __fastcall (__closure *TOnEventNotification)(System::TObject* Sender);
public event EventHandler OnRecordingReadyToStart;
Public Event OnRecordingReadyToStart As EventHandler
void SetOnRecordingReadyToStart (TOnRecordingReadyToStartCb OnRecordingReadyToStartCb);
typedef void CALLBACK TOnRecordingReadyToStartCb (void *Object, void *Sender);
Occurs when a recording held by HoldRecording is ready to start.
Building the recording graph (creating/opening the file, connecting the source, the compressors and the file writer) takes a variable number of seconds, depending on the video capture device and the compressors. When StartRecording is invoked directly, these seconds are lost: the recording only begins once the graph is built.
With HoldRecording enabled before StartRecording, the graph is built in advance and already previewing, so the file is ready to be written immediately: this event occurs as soon as the graph is ready, and the writing to the file begins at the exact moment ResumeRecording is invoked.
The recording stays held after the event handler exits, until ResumeRecording is invoked, from this event or later (e.g. from a timer, at the exact moment the file must start), or until StopRecording cancels it.
E.g. the handler can show a dialog asking to start or cancel recording (see the MainDemo project for sample code).
Not raised when RecordingTimer = rt_StartRecording or RecordingOnMotion_Enabled = true: the start of the recording is then driven by the timer or by the motion detection.