Apparence-io / CamerAwesome

📸 Embedding a camera experience within your own app shouldn't be that hard. A flutter plugin to integrate awesome Android / iOS camera experience.
https://ApparenceKit.dev
MIT License
957 stars 245 forks source link

Camera to behave like a Dashcam #321

Open LastxTemplar opened 1 year ago

LastxTemplar commented 1 year ago

Dashcam behaviour

Is it possible to make the camera behave like a dashcam? Meaning that you start the video recording but the camera only records to a maximum of 5 minutes for example, if it exceeds that duration then it should just delete old footage but continue recording.

Thank you!

apalala-dev commented 1 year ago

I am not very experienced with this kind of feature, but since we rely on classic Files for now, I don't think it's possible yet. If you have any hint on how to do it in the native side, it would be nice! For a dashcam, you might use the analysis stream to get images from the camera and save them somewhere in order to have a video-like format (a sequence of pictures, without audio). This way, you could for example save only the last X images or something like that. Not sure how to ensure it's exactly 5 minutes though.