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 <mattermod@users.noreply.github.com>
This commit is contained in:
SilentYak 2022-04-19 21:10:29 +08:00 committed by GitHub
parent 608e9244be
commit 70d025fe1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = {};