feat: add autorotate for landscape (#1265)

Signed-off-by: Lance Chant <13349722+lancechant@users.noreply.github.com>
Co-authored-by: Lance Chant <13349722+lancechant@users.noreply.github.com>
Co-authored-by: Fredrik Burmester <fredrik.burmester@gmail.com>
This commit is contained in:
Simon Eklundh
2026-01-11 22:27:19 +01:00
committed by GitHub
parent 1c0ed82deb
commit 6957c4fd64
3 changed files with 8 additions and 3 deletions

View File

@@ -29,6 +29,7 @@ export const PlaybackControlsSettings: React.FC = () => {
const orientations = [
ScreenOrientation.OrientationLock.DEFAULT,
ScreenOrientation.OrientationLock.PORTRAIT_UP,
ScreenOrientation.OrientationLock.LANDSCAPE,
ScreenOrientation.OrientationLock.LANDSCAPE_LEFT,
ScreenOrientation.OrientationLock.LANDSCAPE_RIGHT,
];
@@ -39,6 +40,8 @@ export const PlaybackControlsSettings: React.FC = () => {
"home.settings.other.orientations.DEFAULT",
[ScreenOrientation.OrientationLock.PORTRAIT_UP]:
"home.settings.other.orientations.PORTRAIT_UP",
[ScreenOrientation.OrientationLock.LANDSCAPE]:
"home.settings.other.orientations.LANDSCAPE",
[ScreenOrientation.OrientationLock.LANDSCAPE_LEFT]:
"home.settings.other.orientations.LANDSCAPE_LEFT",
[ScreenOrientation.OrientationLock.LANDSCAPE_RIGHT]:

View File

@@ -21,6 +21,8 @@ const orientationToOrientationLock = (
return OrientationLock.LANDSCAPE_RIGHT;
case Orientation.PORTRAIT_UP:
return OrientationLock.PORTRAIT_UP;
case Orientation.UNKNOWN:
return OrientationLock.LANDSCAPE;
default:
return OrientationLock.PORTRAIT_UP;
}

View File

@@ -282,12 +282,12 @@
"video_orientation": "Video Orientation",
"orientation": "Orientation",
"orientations": {
"DEFAULT": "Default",
"DEFAULT": "Follow Device Orientation",
"ALL": "All",
"PORTRAIT": "Portrait",
"PORTRAIT": "Portrait Auto",
"PORTRAIT_UP": "Portrait Up",
"PORTRAIT_DOWN": "Portrait Down",
"LANDSCAPE": "Landscape",
"LANDSCAPE": "Landscape Auto",
"LANDSCAPE_LEFT": "Landscape Left",
"LANDSCAPE_RIGHT": "Landscape Right",
"OTHER": "Other",