Skip to content

Commit

Permalink
fixed date time of file name
Browse files Browse the repository at this point in the history
  • Loading branch information
yrom committed Dec 5, 2017
1 parent 7d5d068 commit d5ec173
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ protected void onActivityResult(int requestCode, int resultCode, Intent data) {
int bitrate = getSelectedBitrate();
MediaCodecInfo.CodecProfileLevel profileLevel = getSelectedProfileLevel();

SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd-kkmmss", Locale.US);
SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd-HHmmss", Locale.US);
final File file = new File(dir, "Screen-" + format.format(new Date())
+ "-" + width + "x" + height + ".mp4");
mRecorder = new ScreenRecorder(new VideoEncodeConfig(width, height, bitrate,
Expand Down

0 comments on commit d5ec173

Please sign in to comment.