-
Notifications
You must be signed in to change notification settings - Fork 76
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 not handled correctly with apk #17
Comments
Hi @pcrepieux Seems the same issue is happening on Android devices even below 12 when a screenshot is taken in landscape mode, the device rendering itself does not have any issue. I have tried both minicap-bin and minicap-apk as screen grabber got the same results however. |
Hi @pcrepieux. I'm wondering if this issue was fixed or not. I can see possibly-related changes to this problem, but I don't see any publishes after version 2.7.0, which itself doesn't seem to include the fix. Building and replacing directly in node_modules (just for testing purposes) didn't help to solve the problem. |
Hi @mark-omarov |
Hi @pcrepieux There is at least one more problem related to this issue though, as @sudhalucky has mentioned - screenshots in the landscape mode aren't working, even for versions earlier than 12. I have some other problems with Android 12, but they seems to be related to a different lib, so I won't mention them here. |
Here is a quick status. The built from master branch seems to work fine. There is maybe a little trick that can be misleading: when taking screenshot, the apk will be used rather than the binary (for the video stream, the binary is tried first and there is a fallback to the apk). As 2.7.0 doesn't come with latest apk fixes, that could explain the inconsistency that you are experiencing. |
@pcrepieux I sincerely appreciate your help with this issue! |
Hi @pcrepieux |
Hi @pcrepieux , Thanks for your fix, it was merged to the master, my local build now works perfectly, very much appreciated! |
Ohh, I see ... I've just fixed a small pipeline issue. Here you are: |
Hi @pcrepieux , Thanks for fixing the pipeline, I've tested and here's something interesting. Initially, I thought it was a problem of minicap, you can find it in the collapsable list down below. The original idea is hereThere's an error popping up on the first connection (sometimes following connections as well) in minicap, that eventually forces stf to stop the service, therefore, the screen is not showing up on the web-ui.It's possible to bypass the problem by re-connecting a number of times or trying to enable/disable screen streaming, it's like rolling a dice though. This is the error I caught with logcat:
I'm not completely sure due to the lack of android development experience, but if I were to guess it seems like minicap fails to start the capturing because it tries to access the display id while it's still locked? I'm speculating here. :) I thought you should know about it. I'll update you if any new details come up. Edit: tested in combination w/ stf. |
Hey @pcrepieux @koral-- , sorry for my ignorance and not updating you after the PR got merged, this issue has been fixed as far as I'm concerned. Maybe you can consider closing it. Cheers! |
Only portrait mode is properly managed at the moment.
As reported in DeviceFarmer/STFService.apk#37 users who need to have a landscape orientation when using the apk get a badly resized screen. This is also true with STF.
The text was updated successfully, but these errors were encountered: