Giter Club home page Giter Club logo

Comments (5)

scompt avatar scompt commented on June 19, 2024

The bits that actually do the screenshotting are in ddmlib, part of the AOSP. In particular, take a look here to see where the framebuffer is fetched. It looks like the default timeout is 5s as defined here. If you dig up the sourcecode for screenShotTaker.jar, you might be able to call DdmPreferences.setTimeout(int) before taking the screenshot to give yourself more breathing room on the tablet.

from calabash-android.

jonasmaturana avatar jonasmaturana commented on June 19, 2024

I will make the screenShotTaker source available on GitHub. It is indeed using ddmlib.

We have thought about taking the screenshots directly on the device instead of using ddmlib.
It would then give you the screenshot directly on <device_ip>:7102/screenshot.

Do you guys have any opinion about that?

On Wednesday, August 8, 2012 at 11:06 , Edward Dale wrote:

The bits that actually do the screenshotting are in ddmlib, part of the AOSP. In particular, take a look here (http://grepcode.com/file/repo1.maven.org/maven2/com.google.android.tools/ddmlib/r13/com/android/ddmlib/AdbHelper.java?av=f#268) to see where the framebuffer is fetched. It looks like the default timeout is 5s as defined here (http://grepcode.com/file/repo1.maven.org/maven2/com.google.android.tools/ddmlib/r13/com/android/ddmlib/DdmPreferences.java#44). If you dig up the sourcecode for screenShotTaker.jar, you might be able to call DdmPreferences.setTimeout(int) before taking the screenshot to give yourself more breathing room on the tablet.

β€”
Reply to this email directly or view it on GitHub (#69 (comment)).

from calabash-android.

scompt avatar scompt commented on June 19, 2024

That sounds like a great idea.

On Wednesday, August 8, 2012 at 11:10 AM, Jonas Maturana Larsen wrote:

I will make the screenShotTaker source available on GitHub. It is indeed using ddmlib.

We have thought about taking the screenshots directly on the device instead of using ddmlib.
It would then give you the screenshot directly on <device_ip>:7102/screenshot.

Do you guys have any opinion about that?

On Wednesday, August 8, 2012 at 11:06 , Edward Dale wrote:

The bits that actually do the screenshotting are in ddmlib, part of the AOSP. In particular, take a look here (http://grepcode.com/file/repo1.maven.org/maven2/com.google.android.tools/ddmlib/r13/com/android/ddmlib/AdbHelper.java?av=f#268) to see where the framebuffer is fetched. It looks like the default timeout is 5s as defined here (http://grepcode.com/file/repo1.maven.org/maven2/com.google.android.tools/ddmlib/r13/com/android/ddmlib/DdmPreferences.java#44). If you dig up the sourcecode for screenShotTaker.jar, you might be able to call DdmPreferences.setTimeout(int) before taking the screenshot to give yourself more breathing room on the tablet.

β€”
Reply to this email directly or view it on GitHub (#69 (comment)).

β€”
Reply to this email directly or view it on GitHub (#69 (comment)).

from calabash-android.

peritus avatar peritus commented on June 19, 2024

Yes, I like GET /screenshot ;)

from calabash-android.

jonasmaturana avatar jonasmaturana commented on June 19, 2024

They take a look at ab8601d.

Does that work for you on large displays?
I just tested it on a 720*1280 display with no issues. (curl localhost:34777/screenshot -o /dev/null took 0.7 second)

from calabash-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.