默认解码由AVC调整为AV1

This commit is contained in:
orz12
2024-03-06 16:34:42 +08:00
parent dbca58e198
commit 736f99b1d9

View File

@@ -94,18 +94,18 @@ extension AudioQualityDesc on AudioQuality {
enum VideoDecodeFormats { enum VideoDecodeFormats {
DVH1, DVH1,
AV1,
HEVC,
AVC, AVC,
HEVC,
AV1,
} }
extension VideoDecodeFormatsDesc on VideoDecodeFormats { extension VideoDecodeFormatsDesc on VideoDecodeFormats {
static final List<String> _descList = ['DVH1', 'AV1', 'HEVC', 'AVC']; static final List<String> _descList = ['DVH1', 'AVC', 'HEVC', 'AV1'];
get description => _descList[index]; get description => _descList[index];
} }
extension VideoDecodeFormatsCode on VideoDecodeFormats { extension VideoDecodeFormatsCode on VideoDecodeFormats {
static final List<String> _codeList = ['dvh1', 'av01', 'hev1', 'avc1']; static final List<String> _codeList = ['dvh1', 'avc1', 'hev1', 'av01'];
get code => _codeList[index]; get code => _codeList[index];
static VideoDecodeFormats? fromCode(String code) { static VideoDecodeFormats? fromCode(String code) {