FastttCamera icon indicating copy to clipboard operation
FastttCamera copied to clipboard

Is Video capturing possible?

Open iamabhiee opened this issue 10 years ago • 4 comments

Very good library, Is it possible to integrate video capturing?

iamabhiee avatar Feb 27 '15 08:02 iamabhiee

I don't have plans to add video capture anytime soon, but it could be a cool addition down the road!

lauraskelton avatar Mar 04 '15 19:03 lauraskelton

We actually used the FastttCamera library in a project and added the video capturing capability. It actually does not require that much work.

The main problems are that we need to access private methods/attributes. In our case, we simply put the code inside the main class and used it with it. We wanted to make it available through FastttCamera but I wanted to check with @lauraskelton first to see how exactly she wanted this implemented.

I'll wait for her to see how we could do that and I'll be happy to provide the video capturing through a PR.

GabrielCartier avatar Mar 25 '15 02:03 GabrielCartier

Thanks Gabriel, that would be awesome! In general, I'd love it if video capture in FastttCamera could be configurable similarly to how photo capture is, with proper orientation and the ability to crop to the viewport, and delegate methods for when videos have been captured and processed, and a class similar to FastttCapturedImage to pass around a reference to the video file path in the delegate methods.

lauraskelton avatar Mar 27 '15 17:03 lauraskelton

So @lauraskelton, the main problem we ran into was for the session. We actually need to add audio inputs to the session so we can capture the video with sound. Since most of the properties are private, we did the implementation right in the fastttcamera class. Not sure if we'd rather make the required properties and method public (or protected). I wasn't sure if it was better to have a subclass so that people could still use only the photo camera or the subclass with the video functionalities.

You can take a look at the present implementation we have, although it will require some work for the PR (https://github.com/KhanFu/FastttCamera).

Give me your opinion on it when you'll have time.

GabrielCartier avatar Mar 30 '15 15:03 GabrielCartier