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

Can't work on 1024x768 resolution #18

Open
jonesgy opened this issue Oct 20, 2015 · 3 comments
Open

Can't work on 1024x768 resolution #18

jonesgy opened this issue Oct 20, 2015 · 3 comments
Assignees

Comments

@jonesgy
Copy link

jonesgy commented Oct 20, 2015

Hi

Thanks for your contribution on AndroidScreencast. Now I encounter a tricky issue and want to confirm the issue is related to platform or AndroidScreencast.

I change my device's resolutoin to bellowing configuration and AndroidScreencast failed on 1024x768.

1024x800 => Works fine.
1024x768 => Failed. No any frame showing. DDMS Screen Capture can't work too.
1024x600 => Work fine.

It shows me bellowing log

2015-10-18 23:37:32 [ERROR] [ScreenCaptureThread:105] - fetchImage()
com.android.ddmlib.TimeoutException
at com.android.ddmlib.AdbHelper.read(AdbHelper.java:767)
at com.android.ddmlib.AdbHelper.getFrameBuffer(AdbHelper.java:337)
at com.android.ddmlib.Device.getScreenshot(Device.java:508)
at com.github.xsavikx.android.screencast.api.injector.ScreenCaptureThread.fetchImage(ScreenCaptureThread.java:103)
at com.github.xsavikx.android.screencast.api.injector.ScreenCaptureThread.run(ScreenCaptureThread.java:134)
2015-10-18 23:37:32 [INFO ] [ScreenCaptureThread:111] - failed getting screenshot through ADB ok
2015-10-18 23:37:33 [DEBUG] [AndroidScreencastApplication:32] - close() - start
2015-10-18 23:37:33 [DEBUG] [Injector:26] - close() - start
2015-10-18 23:37:33 [DEBUG] [Injector:30] - close() - end

@xSAVIKx
Copy link
Owner

xSAVIKx commented Oct 20, 2015

Hi.
Can say nothing about that.
First of all: how do you change tour device resolution, so that I can try to reproduce issue ?

@xSAVIKx xSAVIKx self-assigned this Oct 20, 2015
@jonesgy
Copy link
Author

jonesgy commented Oct 22, 2015

Hi

Sorry for my later reply.

I change the resolution in my Android BSP to specific resolution for different product's LCD.

If com.android.ddmlib.Device.getScreenshot(...) return failed on specific resolution, does it mean my Android BSP don't support this resolution in JPEG encoder?

@xSAVIKx
Copy link
Owner

xSAVIKx commented Oct 22, 2015

Sorry, but I don't know what is BSP and how it can be changed, I never had such purpose to change resolution.
I don't know exactly if it can be the reason.
You can try to check sources of DDMLIB: http://grepcode.com/file/repo1.maven.org/maven2/com.google.android.tools/ddmlib/r13/com/android/ddmlib/AdbHelper.java#AdbHelper.getFrameBuffer%28java.net.InetSocketAddress%2Ccom.android.ddmlib.Device%29

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