mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-22 15:09:22 +01:00
Enable webm support on Android
This commit is contained in:
parent
6c16a4b7af
commit
4708f2b23a
1 changed files with 2 additions and 1 deletions
|
@ -25,7 +25,7 @@ String getUserDirName(File file) {
|
||||||
throw ArgumentError("Invalid path: ${file.path}");
|
throw ArgumentError("Invalid path: ${file.path}");
|
||||||
}
|
}
|
||||||
|
|
||||||
const _supportedFormatMimes = [
|
final _supportedFormatMimes = [
|
||||||
"image/jpeg",
|
"image/jpeg",
|
||||||
"image/png",
|
"image/png",
|
||||||
"image/webp",
|
"image/webp",
|
||||||
|
@ -33,6 +33,7 @@ const _supportedFormatMimes = [
|
||||||
"image/gif",
|
"image/gif",
|
||||||
// video player currently doesn't work on web
|
// video player currently doesn't work on web
|
||||||
if (!platform_k.isWeb) "video/mp4",
|
if (!platform_k.isWeb) "video/mp4",
|
||||||
|
if (platform_k.isAndroid) "video/webm",
|
||||||
];
|
];
|
||||||
|
|
||||||
const _metadataSupportedFormatMimes = [
|
const _metadataSupportedFormatMimes = [
|
||||||
|
|
Loading…
Reference in a new issue