title: Firemonkey TCameraComponent quality change when reactivated
body: <p>I'm building a barcode reader application in Delphi 10.1 Berlin with firemonkey for Android. Based on the <a href="http://docwiki.embarcadero.com/CodeExamples/Tokyo/en/FMX.CameraComponent_Sample" rel="nofollow noreferrer">CameraComponent sample</a> and using the <a href="https://github.com/Spelt/ZXing.Delphi" rel="nofollow noreferrer">ZXing library</a>, it was possible to read the barcode.</p>
  
  <p>To initialize the camera, I'm using this code:</p>
  
  <pre><code>procedure TfrmMain.btnOpenReaderClick(Sender: TObject);
  begin
    CameraComponent.Active := False;
    CameraComponent.FocusMode := FMX.Media.TFocusMode.ContinuousAutoFocus;
    CameraComponent.Quality := TVideoCaptureQuality.MediumQuality;
    CameraComponent.Active := True;
    CameraComponent.SampleBufferToBitmap(imgCamera.Bitmap, True);
  end;
  </code></pre>
  
  <p>To scan the barcode, I'm running this:</p>
  
  <pre><code>procedure TfrmMain.GetImage;
  var
    ReadResult: TReadResult;
  begin
    CameraComponent.SampleBufferToBitmap(imgCamera.Bitmap, True);
  
    if (FScanInProgress) then
      Exit;
  
    { This code will take every 4 frames. }
    inc(FFrameTake);
    if (FFrameTake mod 4 &lt;&gt; 0) then
      Exit;
  
    ReadResult := nil;
  
    ITask(TTask.Create(
      procedure
      begin
        try
          FScanInProgress := True;
  
          ReadResult := FScanManager.Scan(imgCamera.Bitmap);
  
          TThread.Synchronize(nil,
            procedure
            begin
            try
              if (ReadResult &lt;&gt; nil) then
              begin
                Label1.Text := ReadResult.text;
                CameraComponent.Active := False;
              end;
            except
              on E: Exception do
                ShowMessage(E.Message);
            end;
          end);
        finally
          ReadResult.Free;
          imgCamera.Bitmap.Free;
          FScanInProgress := false;
        end;
      end)).Start;
  end;
  </code></pre>
  
  <p>After reading the barcode, when I set <code>CameraComponent.Active := True;</code> to start reading a new barcode, the CameraComponent quality is automatically set to high quality, even if the property is set as medium quality when starting the component. This causes the preview of the camera to show at low frame rate. Is there a way to set the default capture setting to medium when reactivating the CameraComponent?</p>