Skip to main content

TdxCameraManager.StartRecording(Integer,string) Method

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

Declaration

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