From 4708f2b23ac0ff62bcdf1b8bfced83831e4901e7 Mon Sep 17 00:00:00 2001 From: Ming Ming Date: Mon, 5 Jul 2021 00:32:35 +0800 Subject: [PATCH] Enable webm support on Android --- lib/entity/file_util.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/entity/file_util.dart b/lib/entity/file_util.dart index 69a892a4..b8eec361 100644 --- a/lib/entity/file_util.dart +++ b/lib/entity/file_util.dart @@ -25,7 +25,7 @@ String getUserDirName(File file) { throw ArgumentError("Invalid path: ${file.path}"); } -const _supportedFormatMimes = [ +final _supportedFormatMimes = [ "image/jpeg", "image/png", "image/webp", @@ -33,6 +33,7 @@ const _supportedFormatMimes = [ "image/gif", // video player currently doesn't work on web if (!platform_k.isWeb) "video/mp4", + if (platform_k.isAndroid) "video/webm", ]; const _metadataSupportedFormatMimes = [