Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Capture video with flutter

Hi I am in the process of developing an app with flutter with video recording functionality. I have come across 2 plugins with ability to capture/save an image as a file with flutter:

Camera v0.0.2 and Image_picker v0.2.1 , they work well and are official flutter plugins.

In essence I would like to build a mini camera plugin with video recording capabilities with flutter, which would work with iOS and Android seamlessly.

Any suggestions, direction, methods to upgrade these plugins are welcome.

like image 599
Nissim Avatar asked Feb 10 '18 07:02

Nissim


People also ask

How do you record videos on flutter?

To start recording the video, we will add a record button. It should overlay the video preview, so we will put the CameraPreview and the button into a Stack widget. Now, we need to create a new state variable _isRecording and set it to false. Line 2: We need to handle both, start and stop recording actions.


1 Answers

Video recording is now enabled by our team on the official camera plugin v0.2.0

by submitting a pull request to the repository.

The example app for this plugin uses additional plugins path_provider
and video_player to display a sample of the video recorded.

Hope this helps other flutter developers cheers!

like image 62
Nissim Avatar answered Sep 22 '22 20:09

Nissim