From 70d025fe1d63f3665fccad424cfa1aaea5baa66d Mon Sep 17 00:00:00 2001 From: SilentYak <85912672+silentyak@users.noreply.github.com> Date: Tue, 19 Apr 2022 21:10:29 +0800 Subject: [PATCH] feat: add .m4a file preview (#6051) This leverages the video player to play .m4a video files. m4a, mp4, m4v use the same container format so they are all compatible in all players that support mp4. Co-authored-by: Mattermod --- app/utils/file.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/utils/file.js b/app/utils/file.js index 177558ae6..f6841c07b 100644 --- a/app/utils/file.js +++ b/app/utils/file.js @@ -39,8 +39,8 @@ const SUPPORTED_DOCS_FORMAT = Platform.select({ }); const SUPPORTED_VIDEO_FORMAT = Platform.select({ - ios: ['video/mp4', 'video/x-m4v', 'video/quicktime'], - android: ['video/3gpp', 'video/x-matroska', 'video/mp4', 'video/webm'], + ios: ['audio/mp4', 'video/mp4', 'video/x-m4v', 'video/quicktime'], + android: ['audio/mp4', 'video/3gpp', 'video/x-matroska', 'video/mp4', 'video/webm'], }); const types = {};