From b350183f53d7427ed3ba01f39c93bc0d41ca7e88 Mon Sep 17 00:00:00 2001 From: asifyc Date: Tue, 9 Nov 2021 13:27:51 +0530 Subject: [PATCH] removed space from file name --- .../kotlin/com/example/video_compress/VideoCompressPlugin.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/src/main/kotlin/com/example/video_compress/VideoCompressPlugin.kt b/android/src/main/kotlin/com/example/video_compress/VideoCompressPlugin.kt index d8f43de1..56ec4501 100644 --- a/android/src/main/kotlin/com/example/video_compress/VideoCompressPlugin.kt +++ b/android/src/main/kotlin/com/example/video_compress/VideoCompressPlugin.kt @@ -86,7 +86,8 @@ class VideoCompressPlugin : MethodCallHandler, FlutterPlugin { val frameRate = if (call.argument("frameRate")==null) 30 else call.argument("frameRate") val tempDir: String = context.getExternalFilesDir("video_compress")!!.absolutePath - val out = SimpleDateFormat("yyyy-MM-dd hh-mm-ss").format(Date()) +// val out = SimpleDateFormat("yyyy-MM-dd hh-mm-ss").format(Date()) + val out = System.currentTimeMillis().toString(); val destPath: String = tempDir + File.separator + "VID_" + out + ".mp4" var videoTrackStrategy: TrackStrategy = DefaultVideoStrategy.atMost(340).build();