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

consumeRotationChange() #914

Closed
linggongzhi opened this issue Nov 7, 2019 · 4 comments
Closed

consumeRotationChange() #914

linggongzhi opened this issue Nov 7, 2019 · 4 comments
Labels

Comments

@linggongzhi
Copy link

scrcpy是通过consumeRotationChange()这个方法来实现自动横屏的吗?我想投屏效果是竖着显示横屏内容该怎么修改啊,比如看视频的时候,点击全屏,就会横屏,能不能投屏的效果不自动横屏呢?就竖着显示。
Is scrcpy using the consumerotationchange () method to achieve automatic horizontal screen? I think the screen effect is how to modify the content of vertical display horizontal screen. For example, when watching video, click the full screen, the horizontal screen will be displayed. Can the effect of screen projection not automatically horizontal screen? It's just a vertical display.

@rom1v
Copy link
Collaborator

rom1v commented Nov 7, 2019

Is scrcpy using the consumerotationchange () method to achieve automatic horizontal screen?

It just restarts the encoder with different dimensions when it detects rotation change.

Can the effect of screen projection not automatically horizontal screen? It's just a vertical display.

If the device screen is rotated, your scrcpy should automatically resizes itself to display the video horizontally. Which device is it?

Could you post a video of what happens, please?

scrcpy -m800 --record video.mkv

@rom1v rom1v added the rotation label Nov 7, 2019
@linggongzhi
Copy link
Author

linggongzhi commented Nov 8, 2019

I just want to modify scrcpy-server.jar, the vertical frame, and the horizontal content。
https://www.facebook.com/permalink.php?story_fbid=2509165326000641&id=100007215934496

@rom1v
Copy link
Collaborator

rom1v commented Nov 19, 2019

I'm not sure to understand. Do you want #218?

@linggongzhi
Copy link
Author

I'm not sure to understand. Do you want #218?

谢谢,我已解决,我会旋转90度再发流给前端web页面显示,也就是竖着显示横屏。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants