Fabian1648 2 Posted May 21, 2020 Hi, In a Android App, I start a CameraComponent with the following code: Quote if Not Assigned(CameraComponent1) then begin CameraComponent1 := TCameraComponent.Create(Self); CameraComponent1.Kind := TCameraKind.BackCamera; CameraComponent1.Quality := TVideoCaptureQuality.MediumQuality; CameraComponent1.OnSampleBufferReady := CameraComponent1SampleBufferReady; CameraComponent1.Active:=True; end; When the image capture is done, I stop the camera with the following code: Quote if Assigned(CameraComponent1) then begin CameraComponent1.OnSampleBufferReady := nil; CameraComponent1.Active := False; //CameraComponent1.free; FreeAndNil(CameraComponent1); end; When I want to capture a new picture, the setting "CameraComponent1.Quality := TVideoCaptureQuality.MediumQuality" is no longer applied, the camera use its default setting! Where is the problem? In my code or in the CameraComponent? Share this post Link to post
Vandrovnik 214 Posted May 22, 2020 I have seen the same problem and have "solved" it this way: Kamera.Quality := FMX.Media.TVideoCaptureQuality.LowQuality; Kamera.Quality := FMX.Media.TVideoCaptureQuality.MediumQuality; 2 Share this post Link to post
Fabian1648 2 Posted May 22, 2020 6 hours ago, Vandrovnik said: I have seen the same problem and have "solved" it this way: Kamera.Quality := FMX.Media.TVideoCaptureQuality.LowQuality; Kamera.Quality := FMX.Media.TVideoCaptureQuality.MediumQuality; Unbelievable! it works! Thank you for your help Vandrovnik! Share this post Link to post