Expressingx
Expressingx

Reputation: 1572

Flutter camera plugin, get path before recoding stopped

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?

Upvotes: 3

Views: 770

Answers (2)

Eradicatore
Eradicatore

Reputation: 1629

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

Upvotes: 1

milan pithadia
milan pithadia

Reputation: 870

i think you use this lib for help to pickup and capture video or image and get full path and file Object https://pub.dev/packages/image_picker

Upvotes: 0

Related Questions