Minor improvements

This commit is contained in:
Arkadiusz Fal
2022-05-29 14:29:43 +02:00
parent 78d7693128
commit c48d478f64
3 changed files with 34 additions and 29 deletions

View File

@@ -251,9 +251,11 @@ final class MPVBackend: PlayerBackend {
func enterFullScreen() {
model.toggleFullscreen(controls?.playingFullscreen ?? false)
#if os(iOS)
if Defaults[.lockLandscapeWhenEnteringFullscreen] {
Orientation.lockOrientation(.landscape, andRotateTo: UIDevice.current.orientation.isLandscape ? nil : .landscapeRight)
}
#endif
}
func exitFullScreen() {}