Coder Social home page Coder Social logo

Comments (4)

fadden avatar fadden commented on June 14, 2024

It is possible for an app to record itself using the Presentation API to render on a virtual display. You can only record what the app draws, however, not the parts the system draws (like the status bar or nav bar).

Some links in the answer to http://stackoverflow.com/questions/26941104/screen-capture-of-external-display-on-android/ may be useful if you want to go that route. I've updated the bigflake page.

from grafika.

rishi-rranjan avatar rishi-rranjan commented on June 14, 2024

HI Andy,
Thanks for the input. This worked but after playing around
with the code, I figured out that the H.264 HW codec even on Samsung Galaxy
S5 only encode in High profile level 1.3. With VP8 codec(S5 has HW encoder)
FPS goes down to 10 even if target bit rate is 1Mbps.

I wanted to display the captured data on chromecast in real time but I am
guessing it's not possible for now with current capabilities of HW
encoders.

Thanks,
Rishi

On Sun, Nov 30, 2014 at 8:59 AM, Andy McFadden [email protected]
wrote:

It is possible for an app to record itself using the Presentation API to
render on a virtual display. You can only record what the app draws,
however, not the parts the system draws (like the status bar or nav bar).

Some links in the answer to
http://stackoverflow.com/questions/26941104/screen-capture-of-external-display-on-android/
may be useful if you want to go that route. I've updated the bigflake page.


Reply to this email directly or view it on GitHub
#14 (comment).

from grafika.

omerjerk avatar omerjerk commented on June 14, 2024

Can anyone tell how to exactly use the Presentation API to record the app activity?

I have created a VirtualDisplay which takes a Surface from a SurfaceView.

I understand that I need to use the Presentation API to render on this VirtualDisplay. However I am not really getting it. Any tips?

from grafika.

claywilkinson avatar claywilkinson commented on June 14, 2024

@omerjerk - I added a Screen recording activity sample to show how to use it.

from grafika.

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.