Skip to content

setMaxFileSize(); not supported  #13

@pawaom

Description

@pawaom

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions