Enable webm support on Android

This commit is contained in:
Ming Ming 2021-07-05 00:32:35 +08:00
parent 6c16a4b7af
commit 4708f2b23a

View file

@ -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 = [