Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to check the size of video while recording? [closed]

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.

like image 709
Jas Avatar asked Nov 16 '25 08:11

Jas


1 Answers

Use below line in when you start intent for video capture.

videoCaptureIntent.putExtra(MediaStore.EXTRA_SIZE_LIMIT, 10485760L);// 10*1024*1024 = 10MB
like image 200
Chirag Savsani Avatar answered Nov 19 '25 03:11

Chirag Savsani



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!