This commit is contained in:
liuye
2023-05-24 14:09:41 +08:00
2 changed files with 4 additions and 4 deletions

View File

@@ -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("视频编码格式不支持")
}

View File

@@ -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");