At the moment, the autofocus is active only when recording is stopped.
Starting a record procedure fixes the focus to the current value.
This is unintuitive for the user.
Also, this reflects into the code, which has 3 copies of the camera setup for a "preview".
Better to add the "autofocus" as boolean parameter of the startPreview() method.