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

rotation #272

Open
zephyr-peak opened this issue Apr 28, 2023 · 3 comments
Open

rotation #272

zephyr-peak opened this issue Apr 28, 2023 · 3 comments

Comments

@zephyr-peak
Copy link

Hi, may I ask if there is currently support for setting the rotation of mobile phones in four directions (0, 90,270,360), or if there are any suggestions for implementation

@drauggres
Copy link
Collaborator

Hi. It is not supported. It will require to modify both ws-scrcpy client and scrcpy-server.
Here are parts of the code that might interest you:

https://github.com/Genymobile/scrcpy/blob/cb20bcb16f4ca191e237c8744a7c2e6d29701d60/server/src/main/java/com/genymobile/scrcpy/Controller.java#L172-L174
https://github.com/Genymobile/scrcpy/blob/cb20bcb16f4ca191e237c8744a7c2e6d29701d60/server/src/main/java/com/genymobile/scrcpy/Device.java#L318-L334

[ControlMessage.TYPE_ROTATE_DEVICE, 'Rotate device'],

client.sendMessage(new CommandControlMessage(action));

@drauggres
Copy link
Collaborator

drauggres commented Apr 30, 2023

@zephyr-peak
Copy link
Author

Okay, thank you very much for your patient answer

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

No branches or pull requests

2 participants