mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 16:18:22 +08:00
opt: select dialog & feat: select subtitle if muted (#564)
* opt: select dialog * opt: subtitle * feat: select subtitle if muted
This commit is contained in:
committed by
GitHub
parent
2ddfea5cf3
commit
82f9f48a8e
@@ -56,7 +56,7 @@ extension VideoQualityDesc on VideoQuality {
|
||||
'杜比视界',
|
||||
'8K 超高清'
|
||||
];
|
||||
get description => _descList[index];
|
||||
String get description => _descList[index];
|
||||
}
|
||||
|
||||
///
|
||||
@@ -89,7 +89,7 @@ extension AudioQualityDesc on AudioQuality {
|
||||
'杜比全景声',
|
||||
'Hi-Res无损',
|
||||
];
|
||||
get description => _descList[index];
|
||||
String get description => _descList[index];
|
||||
}
|
||||
|
||||
enum VideoDecodeFormats {
|
||||
@@ -101,12 +101,12 @@ enum VideoDecodeFormats {
|
||||
|
||||
extension VideoDecodeFormatsDesc on VideoDecodeFormats {
|
||||
static final List<String> _descList = ['DVH1', 'AV1', 'HEVC', 'AVC'];
|
||||
get description => _descList[index];
|
||||
String get description => _descList[index];
|
||||
}
|
||||
|
||||
extension VideoDecodeFormatsCode on VideoDecodeFormats {
|
||||
static final List<String> _codeList = ['dvh1', 'av01', 'hev1', 'avc1'];
|
||||
get code => _codeList[index];
|
||||
String get code => _codeList[index];
|
||||
|
||||
static VideoDecodeFormats? fromCode(String code) {
|
||||
final index = _codeList.indexOf(code);
|
||||
|
||||
Reference in New Issue
Block a user