Closed unknown-undefined closed 2 years ago
Nice catch! Thanks for your contribution!
// Not to set the result as strong-mode so that it would have exception to
// lead to the failure of compression
final filePath = await (_invoke<String>('getFileThumbnail', {
'path': path,
'quality': quality,
'position': position,
}));
final file = File(Uri.decodeFull(filePath!));
If the path contains Chinese, there will be an error
I'm using video_compress 3.1.1.
If origin video contains space, calling
VideoCompress.getFileThumbnail
will result infilePath
contains %20. Just callUrl.decodeFull
to decode %20, because File() constructor DONOT need encode path.