From 40a141aaafb473dbf218e5acb9a32394c13bb125 Mon Sep 17 00:00:00 2001 From: Aicirou <2643053021@qq.com> Date: Fri, 10 Jul 2020 00:36:30 +0800 Subject: [PATCH] :sparkles:Video player supports mov,m4v --- src/utils/AcrouUtil.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/AcrouUtil.js b/src/utils/AcrouUtil.js index 5d1bb1f..7bfdf84 100644 --- a/src/utils/AcrouUtil.js +++ b/src/utils/AcrouUtil.js @@ -13,7 +13,7 @@ const text_exts = [ "sh", "md", ]; -const video_exts = ["mp4", "webm", "mkv", "m3u8", "flv"]; +const video_exts = ["mp4", "webm", "mkv", "m3u8", "flv", "mov", "m4v"]; const image_exts = ["bmp", "jpg", "jpeg", "png", "gif"]; const pdf_exts = ["pdf"]; @@ -76,7 +76,7 @@ export const checkExtends = (path) => { .split(".") .pop() .toLowerCase(); - let exts = text_exts.concat(...video_exts,...image_exts,...pdf_exts); + let exts = text_exts.concat(...video_exts, ...image_exts, ...pdf_exts); return exts.indexOf(`${ext}`) != -1; };