编码支持h265

This commit is contained in:
艾贤凌
2023-05-23 12:41:52 +00:00
parent 73b7c5222b
commit 84096c9bde

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