Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCameraManager.StartRecording(Integer,string) Method

Starts recording a video from a specified camera to an AVI file.

#Declaration

Delphi
function StartRecording(ADeviceIndex: Integer; const AFileName: string): Boolean;

#Parameters

Name Type
ADeviceIndex Integer
AFileName string

#Returns

Type
Boolean

#Remarks

The ADeviceIndex parameter specifies the camera whose video output is to be recorded.

The AFileName parameter specifies an AVI file to which the recorded video is saved. Make certain that this file is accessible for write operations. If the file already exists, it’s not recreated – the recorded video is saved starting from the beginning of the file.

The StartRecording function returns True if video recording has started successfully; otherwise – False. Once started, the camera manager continuously saves the captured video to the specified AVI file until the StopRecording method is called or the file operation fails.

See Also