Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to capture photo while recording video in flutter?

I am working on flutter camera package. I wrote 2 separate method for capturing photo and video recording both are working well.

But I want to capture photo while recording video but unable to find how to do it in flutter.

Anyone has any idea about this? like how to capture photo while recording in flutter?

like image 434
dinesh.rajbhar Avatar asked Oct 20 '25 03:10

dinesh.rajbhar


1 Answers

I would recommend implementing a button so that when the user clicks on it would extract a frame from the recording. The logic would require precise time calculation for when the user pressed the button vs the length of the recorded video. you can find some code snippets on how to implement that here

like image 190
Edtimer Avatar answered Oct 22 '25 04:10

Edtimer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!