diff --git a/pkg/sqlite/setup_test.go b/pkg/sqlite/setup_test.go index e043be2a672..2e5b90195ca 100644 --- a/pkg/sqlite/setup_test.go +++ b/pkg/sqlite/setup_test.go @@ -539,7 +539,6 @@ func TestMain(m *testing.M) { // initialise empty config - needed by some migrations _ = config.InitializeEmpty() - ret := runTests(m) os.Exit(ret) } diff --git a/ui/v2.5/src/components/ScenePlayer/ScenePlayer.tsx b/ui/v2.5/src/components/ScenePlayer/ScenePlayer.tsx index 3098a134da8..779c1202966 100644 --- a/ui/v2.5/src/components/ScenePlayer/ScenePlayer.tsx +++ b/ui/v2.5/src/components/ScenePlayer/ScenePlayer.tsx @@ -553,7 +553,9 @@ export const ScenePlayer: React.FC = ({ enterOnRotate: true, exitOnRotate: true, lockOnRotate: true, - lockToLandscapeOnEnter: isLandscape, + lockToLandscapeOnEnter: uiConfig?.disableMobileMediaAutoRotateEnabled + ? false + : isLandscape, }, touchControls: { disabled: true, @@ -679,6 +681,7 @@ export const ScenePlayer: React.FC = ({ autoplay, interfaceConfig?.autostartVideo, uiConfig?.alwaysStartFromBeginning, + uiConfig?.disableMobileMediaAutoRotateEnabled, _initialTimestamp, ]); diff --git a/ui/v2.5/src/components/Settings/SettingsInterfacePanel/SettingsInterfacePanel.tsx b/ui/v2.5/src/components/Settings/SettingsInterfacePanel/SettingsInterfacePanel.tsx index 84fc317dc38..78155f61a1a 100644 --- a/ui/v2.5/src/components/Settings/SettingsInterfacePanel/SettingsInterfacePanel.tsx +++ b/ui/v2.5/src/components/Settings/SettingsInterfacePanel/SettingsInterfacePanel.tsx @@ -278,6 +278,12 @@ export const SettingsInterfacePanel: React.FC = () => { checked={ui.enableChromecast ?? undefined} onChange={(v) => saveUI({ enableChromecast: v })} /> + saveUI({ disableMobileMediaAutoRotateEnabled: v })} + />