MediaRecorder has setMaxFileSize(); supported
this helps to check if There is enough space on device where we find total space and then set remaining space as maxfilesize and stop recording if the space is reached
using
MediaRecorder.setOnInfoListener(this);
and
@OverRide
public void onInfo(MediaRecorder mediaRecorder, int i, int i1) {
if (i == MediaRecorder.MEDIA_RECORDER_INFO_MAX_FILESIZE_REACHED) {
Toast.makeText(
mcontext, "file_size_limit_reached", Toast.LENGTH_SHORT)
.show();
how can this be done in this code
MediaRecorder has setMaxFileSize(); supported
this helps to check if There is enough space on device where we find total space and then set remaining space as maxfilesize and stop recording if the space is reached
using
MediaRecorder.setOnInfoListener(this);
and
@OverRide
public void onInfo(MediaRecorder mediaRecorder, int i, int i1) {
if (i == MediaRecorder.MEDIA_RECORDER_INFO_MAX_FILESIZE_REACHED) {
Toast.makeText(
mcontext, "file_size_limit_reached", Toast.LENGTH_SHORT)
.show();
how can this be done in this code