KillerInk / FreeDcam

FreeDcam is a CameraApp for Android >4.0(ics) wich try to enable stuff that is forgotten by the manufacturs
GNU General Public License v2.0
297 stars 44 forks source link

Video file corrupts while recording on low free storage #67

Closed aunqur closed 5 years ago

aunqur commented 5 years ago

Phone Model: Mi A1

FreeDcam Version: 4.1final

Problem Description:

If file save location of videos have low memory, It will be good to stop automatically while system have only 200-500 mb free space. Because the video recorded file will be corrupt and it still tries to write file when no storage space available.

Also with nearly zero memory the android internal os modules then fails to write settings on disk and automatically crashes ex:play services, system ui, etc.

Preserve some memory so system can work properly.

KillerInk commented 5 years ago

thats a real problem. at current state freedcam ignores low storage space. dont know yet how to solve it. maybe java have a callback wich notify about storage changes. alternative a new thread must get started and check the every xx ms the storage size

aunqur commented 5 years ago

There is a free storage detection that shows at right top along with current time and video profile. that detection can be used to trigger video stop at low storage.