I have a requirement to create an app in which i want to record video and to stop the recording when the file size exceeds say 10 mb.Is that possible? I know that file size can be checked after saving. But I want to know whether this can be done on run time.Any help will be greatly appreciated.
Use below line in when you start intent for video capture.
videoCaptureIntent.putExtra(MediaStore.EXTRA_SIZE_LIMIT, 10485760L);// 10*1024*1024 = 10MB
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With