mattprecious / telescope

A simple tool to allow easy bug report capturing within your app.
Apache License 2.0
1.18k stars 116 forks source link

Native Screen Video Capture #14

Closed JakeWharton closed 7 years ago

JakeWharton commented 10 years ago

http://developer.android.com/about/versions/android-5.0.html#ScreenCapture

Two fingers triggers callback, dialog or something says "record video", two finger trigger again to stop. Bonus if you automatically clip the video to remove the two finger trigger from the end!

yogurtearl commented 9 years ago

:+1:

mattprecious commented 9 years ago

Since you've already tackled the hard parts of screen recording @JakeWharton, I think the difficult part here would be the UI and API. Should a view in a library be responsible for creating dialogs? Should it automatically stop recording when you leave the app? I think for some use cases it would be beneficial to keep recording once the activity is paused (recording bugs when intenting out to different apps), but that also means you need to return to your app to stop the recording.

I'm inclined to say that Telecine is the better solution for video capturing. Can Telecine expose an API that Telescope can call to trigger the overlay? Two fingers to capture a screenshot, three fingers to start Telecine with pre-defined configurations and a callback to handle the video.

JakeWharton commented 9 years ago

https://github.com/JakeWharton/Telecine/issues/4

NightlyNexus commented 9 years ago

What pre-defined configurations would be best for Telecine to accept, and what information should come back in the callback?

mattprecious commented 9 years ago

I think the only thing that I would need in the callback is a File or a Uri and possibly a result status (if the presence of the file is not enough of an indicator).

As for configurations... video size would be a nice one. Not sure what else would be useful. Maybe a destination file?

mattprecious commented 7 years ago

Telecine isn't adding the API and I have no interest in adding or maintaining video code so I'm going to close this one.