Skip to content

StartRecording

function

Delphi
function StartRecording: Boolean;
C++Builder
bool __fastcall StartRecording();
C#
public bool StartRecording();
VB.NET
Public Function StartRecording() As Boolean
C++/Qt
BOOL StartRecording ();

Starts the recording by using the current video capture device (and audio capture device, if AudioRecording is enabled).

StartRecording takes no parameter. By default (HoldRecording = false), the recording starts as soon as the recording graph is built (after a variable number of seconds, depending on the video capture device, audio/video compressors, etc.).

To start the file at a precise moment, set the HoldRecording property to true before calling StartRecording: the recording graph is built and runs in preview mode, and the writing to the file is held until ResumeRecording is invoked.

The OnRecordingReadyToStart event then occurs when the graph is built, to signal that ResumeRecording can be invoked, at once or later.

See the recording chapter for more information.