Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix Orientation handling #656

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

stonerl
Copy link
Collaborator

@stonerl stonerl commented May 3, 2024

The orientationdebouncer was always firing on rotation changes, interfering with lockOrientation calls from the player. This resulted in multiple rotations to the same orientation. Visible for the user were multiple changes in the video size when rotating the device.

Moreover, when Browser was locked to portrait, the very first landscape rotation did not register and needed to be called twice.

Should also fix #499

The orientationdebouncer was always firing on rotation changes, interfering with lockOrientation calls from the player. This resulted in multiple rotations to the same orientation. Visible for the user were multiple changes in the video size when rotating the device.

Also when Browser was locked to portrait, the very first landscape rotation did not register and needed to be called twice.
@stonerl stonerl changed the title remove orientationDebouncer fix Orientation handling May 3, 2024
when honorSystemOrientationLock is false and rotateToLandscapeOnEnterFullScreen.isRotating is false video did not rotate to fullscreen.
The rotation lock button function now depends on the Settings.

When "Follow device orientation lock" is enabled. Enabling rotation lock in the player will not rotate into landscape when hitting the fullscreen button.

When "Follow device orientation lock" is disabled, it will prevent the player from going into fullscreen on device rotation, but goes into fullscreen with landscape when hitting the fullscreen button.
@stonerl stonerl marked this pull request as draft May 5, 2024 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Player controls go off-screen in landscape mode
1 participant