Support new screen ratios: 20:9, 3:2, 5:4

This commit is contained in:
redphx 2025-04-21 07:15:51 +07:00
parent da6ab51ba0
commit 0551d909e5
4 changed files with 16 additions and 7 deletions

View File

@ -2442,10 +2442,13 @@ class StreamSettingsStorage extends BaseSettingsStorage {
default: "16:9",
options: {
"16:9": `16:9 (${t("default")})`,
"18:9": "18:9",
"21:9": "21:9",
"16:10": "16:10",
"18:9": "18:9",
"20:9": "20:9",
"21:9": "21:9",
"3:2": "3:2",
"4:3": "4:3",
"5:4": "5:4",
fill: t("stretch")
}
},

File diff suppressed because one or more lines are too long

View File

@ -95,10 +95,13 @@ export const enum StreamStatPosition {
export const enum VideoRatio {
'16:9' = '16:9',
'18:9' = '18:9',
'21:9' = '21:9',
'16:10' = '16:10',
'18:9' = '18:9',
'20:9' = '20:9',
'21:9' = '21:9',
'3:2' = '3:2',
'4:3' = '4:3',
'5:4' = '5:4',
FILL = 'fill',
}

View File

@ -228,10 +228,13 @@ export class StreamSettingsStorage extends BaseSettingsStorage<StreamPref> {
default: VideoRatio['16:9'],
options: {
[VideoRatio['16:9']]: `16:9 (${t('default')})`,
[VideoRatio['18:9']]: '18:9',
[VideoRatio['21:9']]: '21:9',
[VideoRatio['16:10']]: '16:10',
[VideoRatio['18:9']]: '18:9',
[VideoRatio['20:9']]: '20:9',
[VideoRatio['21:9']]: '21:9',
[VideoRatio['3:2']]: '3:2',
[VideoRatio['4:3']]: '4:3',
[VideoRatio['5:4']]: '5:4',
[VideoRatio.FILL]: t('stretch'),
//'cover': 'Cover',