I’ve problem with TCameraComponent (Delphi Rio 10.3.1), similar to this one:
Firemonkey TCameraComponent quality change when reactivated
but neither accepted answer nor comments suggestion work for me.
Camera := TCameraComponent.Create(Self);
Camera.Quality := TVideoCaptureQuality.LowQuality;
Camera.OnSampleBufferReady := CameraSampleBufferReady;
Camera.Active := True;
Camera.Active := False;
Camera.OnSampleBufferReady := nil;
Camera := nil;
Setting quality to Low works only once. Then destroying and recreating TCameraComponent always restores quality settings to default (high). I’m quite aware of ARC issues with destroying objects, but none of methods I know work.