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

Screen recording #44

Open
ChandlerSwift opened this issue Aug 6, 2020 · 1 comment
Open

Screen recording #44

ChandlerSwift opened this issue Aug 6, 2020 · 1 comment

Comments

@ChandlerSwift
Copy link
Contributor

ChandlerSwift commented Aug 6, 2020

More than once, I've had an issue to debug or wanted to post a screen recording demo of what's happening on the watch. AsteroidOS does have screenshot support via D-Bus (as noted in the docs), but as far as I can tell no support for screen recordings.

Android has similar functionality that perhaps we could model in the screenrecord tool (which in fact does come with a default build of asteroidos, but doesn't know how to talk to our compositor!)

root@harmony:~# which screenrecord
/system/bin/screenrecord
root@harmony:~# screenrecord test.mp4
ERROR: unable to get display characteristics
root@harmony:~#

This is on my list of issues I'm planning on taking a look at eventually, and I'd welcome any input/design suggestions/"this is basically done, you just have to use ____ API" that anyone has to offer!

@MagneFire
Copy link
Member

Recently, I had a look into this, because I needed it for something too 😉
Only did some research, but it basically already exists for SailfishOS/Mer Project.

Lipstick is base for asteroid-launcher. Upstream Lipstick has support for screen recording, but this has been removed by @FlorentRevest in this commit: AsteroidOS/lipstick@0274da6.
You likely only have to re-implement this, here is the upstream variant: https://git.sailfishos.org/mer-core/lipstick/commits/master/src/compositor/lipstickrecorder.cpp

Once that is done, the compositor should have support for screen recording, then all you have to do is create a screen recorder app. Which also exists: https://github.com/nemomobile/lipstick-recorder or https://github.com/CODeRUS/screenrecorder

You will likely need to change the app so that it works in a client/server configuration, as on AsteroidOS we don't support background apps(i.e. screen goes off -> app gets killed).

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