How can I save video to MediaStore by CameraX on Java?
I saw
this page to learn how to take some video captures and save them to a device.
the Android official code:
// Create MediaStoreOutputOptions for our recorder
val name = "CameraX-recording-" +
SimpleDateFormat(FILENAME_FORMAT,
Locale.US)
.format(System.currentTimeMillis()) + ".mp4"
val contentValues = ContentValues().apply {...