-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
Android 14 beta lock orientation doesn't work as expected when the device goes into landscape mode. #4011
Comments
me too, I think this is a problem on new Android 14 |
OK, so now that the 14 source is released, I think the issue is due to this change in the This fn now ignores the orientation param:
|
FYI, I tried doing what I suggested above, but it didn't work. |
@rom1v fyi, in my own code I was able to create a work around for this by manually rotating the surface myself. |
@ssalenik Do you have a public branch which does this? |
No, unfortunately that code is not open source. But I'll see if maybe I can make a patch, or at least write out the concept better with the scrcpy code. |
@ssalenik Indeed, a base branch in the scrcpy codebase would help a lot 😉 Setting a surface from a Otherwise, I'll probably investigate in the future (at first glance, this sample should help). |
scrcpy/server/src/main/java/com/genymobile/scrcpy/ScreenCapture.java Lines 54 to 55 in 206809a
scrcpy/server/src/main/java/com/genymobile/scrcpy/wrappers/WindowManager.java Lines 104 to 120 in 206809a
Not this issue, seeing #4840 |
I have also encountered this problem, is there any good solution to solve it now? Thank you very much. @ssalenik |
Encountered the same problem |
Please test #5455. |
Environment
Describe the bug
Android 14 beta lock orientation doesn't work as expected when the device goes into landscape mode.
eg: if you launch:
scrcpy --lock-video-orientation=0
then go into landscape in an app, you get this:Looks like it no longer rotates the display output to fit the surface of the codec, but instead it keeps it in its orientation and scales it. Not clear if its a "bug" which will be fixed in the release, but seems possibly unlikely since its already in beta.
The text was updated successfully, but these errors were encountered: