docs: public static void takeVideo(@NonNull Activity activity, int requestCode, File outPath,
                                   @IntRange(from = 0, to = 1) int quality,
                                   @IntRange(from = 1) long duration,
                                   @IntRange(from = 1) long limitBytes) {
          Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
          Uri uri = getUri(activity, outPath);
          intent.putExtra(MediaStore.EXTRA_OUTPUT, uri);
          intent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, quality);
          intent.putExtra(MediaStore.EXTRA_DURATION_LIMIT, duration);
          intent.putExtra(MediaStore.EXTRA_SIZE_LIMIT, limitBytes);
          intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
          intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
          activity.startActivityForResult(intent, requestCode);
      }