RVCamRecorderInitInThread

<< Click to display table of contents >>

RVCamRecorderInitInThread

Specifies when video recording or streaming should be initialized in TRVCamRecorder component.

Unit [VCL and LCL] MRVCamRecorder;

Unit [FMX] fmxMRVCamRecorder;

var
  RVCamRecorderInitInThread: Boolean = False;

If False, recording/streaming is initialized in the context of the main process immediately after assigning TRVCamRecorder.Active = True. This is convenient because initialization errors can be detected immediately after the call (in case of an error, Active will be reset to False). This is the recommended setting when recording to a file. However, when streaming, initialization may take some time, during which the application may become unresponsive.

If True, initialization is performed in a background thread. This is the recommended setting when streaming.

In both cases, changes to the Active property can be monitored using the TRVCamRecorder.OnActiveChanged event.