From 84096c9bde367586d2a91e6b0b0a04e3f4cd2476 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=89=BE=E8=B4=A4=E5=87=8C?= Date: Tue, 23 May 2023 12:41:52 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E7=BC=96=E7=A0=81=E6=94=AF=E6=8C=81h265?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/publicity/AppContentInfo/components/Add.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/publicity/AppContentInfo/components/Add.vue b/packages/publicity/AppContentInfo/components/Add.vue index aafda5a1..d1adf0f6 100644 --- a/packages/publicity/AppContentInfo/components/Add.vue +++ b/packages/publicity/AppContentInfo/components/Add.vue @@ -196,7 +196,7 @@ }; mp4boxfile.onReady = (info) => { let codec = info.mime.match(/codecs="(\S*),/)[1] - if (codec.indexOf('avc') === -1) { + if (!/(avc|hevc)/.test(codec)) { return this.$message.error("视频编码格式不支持") } From f47a481076841d5dee6919080cd41d151cee9b23 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Wed, 24 May 2023 09:08:28 +0800 Subject: [PATCH 2/2] bug --- project/qujing/app/AppCurriculumManage/components/Add.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/project/qujing/app/AppCurriculumManage/components/Add.vue b/project/qujing/app/AppCurriculumManage/components/Add.vue index 8be93070..c3004053 100644 --- a/project/qujing/app/AppCurriculumManage/components/Add.vue +++ b/project/qujing/app/AppCurriculumManage/components/Add.vue @@ -168,9 +168,9 @@ }; mp4boxfile.onReady = (info) => { let codec = info.mime.match(/codecs="(\S*),/)[1] - if (codec.indexOf('avc') === -1) { - return this.$message.error("视频编码格式不支持") - } + // if (codec.indexOf('avc') === -1) { + // return this.$message.error("视频编码格式不支持") + // } if (size) { return this.$message.error("视频大小不能超过100M");