fix: 默认字幕偏好错误、全屏逻辑独立、新增全屏不转方向、字幕无法关闭

This commit is contained in:
orz12
2024-03-03 23:15:09 +08:00
parent 3634765b0c
commit e3fcecfa1d
2 changed files with 18 additions and 4 deletions

View File

@@ -2,6 +2,8 @@
enum FullScreenMode {
// 根据内容自适应
auto,
// 不改变当前方向
none,
// 始终竖屏
vertical,
// 始终横屏
@@ -11,11 +13,11 @@ enum FullScreenMode {
}
extension FullScreenModeDesc on FullScreenMode {
String get description => ['按视频方向(默认)', '强制竖屏', '强制横屏', '屏幕长宽比<1.25或为竖屏视频时竖屏,否则横屏'][index];
String get description => ['按视频方向(默认)', '不改变当前方向','强制竖屏', '强制横屏', '屏幕长宽比<1.25或为竖屏视频时竖屏,否则横屏'][index];
}
extension FullScreenModeCode on FullScreenMode {
static final List<int> _codeList = [0, 1, 2, 3];
static final List<int> _codeList = [0, 1, 2, 3, 4];
int get code => _codeList[index];
static FullScreenMode? fromCode(int code) {