默认解码由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 {
DVH1,
AV1,
HEVC,
AVC,
HEVC,
AV1,
}
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];
}
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];
static VideoDecodeFormats? fromCode(String code) {