-
-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
How to listen on the change of the screen when the screen is rotated #3605
Comments
On the client side, |
That is to say, my frontend needs to detect the size of each frame in real time, and reset jmuxer if it is different from the last time? |
This is what the scrcpy client does. Alternatively, you could adapt the protocol to send a "rotation" event on the wire before sending the next frame at the new dimension. Since when the frame is decoded, the size is available directly in the resulting |
It is recommended to call the getCurrentRotation method to obtain the device's orientation when the device is rotated. The orientation information can be sent along with the video in the header of the key frame. |
If I only use the scrcpy-server, and then use the jmuxer to decode on frontend, how will the frontend listen when the screen is rotated. Only when it listens, can the next step, such as reset jmuxer to make sure the screen display is normal
I refer to this issue, but didn't find the answer.
Looking forward to your reply. @rom1v
The text was updated successfully, but these errors were encountered: