Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter camera plugin, get path before recoding stopped

Tags:

flutter

I'm using camera plugin to record video. However, I need this video to be transferred to API. I want to do that in chunks, lets say 4MB. I would usually do this with a loop reading file size to check when we have new chunk. The problem is that from version 0.6.0 and above startVideoRecording() no longer accepts path where to store it and I don't know where the file is to keep reading its size. It only gives the path after the recording is stopped. That means I have to start transferring after that and this would be annoying for the user.

I know I can downgrade my version below 0.6.0 but I really don't want to do that if there is another way.

So, is there a way to get current file being recorded after startVideoRecording() is called?

like image 903
Expressingx Avatar asked Aug 07 '26 18:08

Expressingx


1 Answers

I posted this on the github refactor open issue, just FYI. Looks like they will look at adding it as an optional parameter.

enter image description here

like image 91
Eradicatore Avatar answered Aug 09 '26 08:08

Eradicatore



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!