breautek commented on a change in pull request #215:
URL:
https://github.com/apache/cordova-plugin-media-capture/pull/215#discussion_r745032528
##########
File path: src/android/Capture.java
##########
@@ -301,6 +328,16 @@ private void captureVideo(Request req) {
PermissionHelper.requestPermission(this, req.requestCode,
Manifest.permission.CAMERA);
} else {
Intent intent = new
Intent(android.provider.MediaStore.ACTION_VIDEO_CAPTURE);
+ String timeStamp = new
SimpleDateFormat("yyyyMMddHHmmssSSS").format(new Date());
+ String fileName = "VID_" + timeStamp + ".avi";
Review comment:
Is it save to assume file extension to begin with? I imagine this could
differ depending on the underlying camera app.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]