From 56e42b5a11ae7271b1f5c85e408fb88ef476a1c2 Mon Sep 17 00:00:00 2001 From: Mael Le Goff Date: Thu, 4 Nov 2021 11:49:02 +0900 Subject: [PATCH] [fix] error MissingPluginException with video_thumbnail --- lib/domain/bloc/controller.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/domain/bloc/controller.dart b/lib/domain/bloc/controller.dart index df9f10dd..aae33ae1 100644 --- a/lib/domain/bloc/controller.dart +++ b/lib/domain/bloc/controller.dart @@ -484,6 +484,7 @@ class VideoEditorController extends ChangeNotifier { Future _generateCoverFile({int quality = 100}) async { return await VideoThumbnail.thumbnailFile( imageFormat: ImageFormat.JPEG, + thumbnailPath: (await getTemporaryDirectory()).path, video: file.path, timeMs: selectedCoverVal?.timeMs ?? startTrim.inMilliseconds, quality: quality,