code: package freed.cam.apis.featuredetector.camera2.xiaomi;
  
  import android.hardware.camera2.CameraCharacteristics;
  import android.os.Build;
  
  import androidx.annotation.RequiresApi;
  
  import java.util.HashSet;
  
  import camera2_hidden_keys.xiaomi.CaptureRequestXiaomi;
  import freed.cam.apis.featuredetector.Camera2FeatureDetectorTask;
  import freed.cam.apis.featuredetector.camera2.BaseParameter2Detector;
  import freed.cam.apis.featuredetector.camera2.VendorKeyDetector;
  import freed.settings.SettingKeys;
  @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
  public class VideoRecordControl extends BaseParameter2Detector implements VendorKeyDetector {
  
      @Override
      protected void findAndFillSettings(CameraCharacteristics cameraCharacteristics) {
  
      }
  
      @Override
      public void checkIfVendorKeyIsSupported(HashSet<String> keys) {
          if (Camera2FeatureDetectorTask.isKeySupported(keys, CaptureRequestXiaomi.VIDEO_RECORD_CONTROL))
              settingsManager.get(SettingKeys.XIAOMI_VIDEO_RECORD_CONTROL).setIsSupported(true);
      }
  }
  