Model improvements

This commit is contained in:
Arkadiusz Fal
2022-09-01 20:01:01 +02:00
parent 02617a7c42
commit db98124de5
8 changed files with 34 additions and 45 deletions

View File

@@ -13,7 +13,7 @@ extension VideoPlayerView {
guard player.presentingPlayer else { return }
DispatchQueue.main.async {
playerControls.presentingControls = false
player.controls.presentingControls = false
player.enterFullScreen(showControls: false)
}
@@ -53,7 +53,7 @@ extension VideoPlayerView {
orientationDebouncer.callback = {
DispatchQueue.main.async {
if orientation.isLandscape {
playerControls.presentingControls = false
player.controls.presentingControls = false
player.enterFullScreen(showControls: false)
Orientation.lockOrientation(OrientationTracker.shared.currentInterfaceOrientationMask, andRotateTo: orientation)
} else {