Change MediaRecorder output file based on time limit instead of file size

  Kiến thức lập trình

I’m trying to modify the MediaRecorder API to change the output file when a specific time limit is reached instead of relying on the file size limit. I haven’t found many resources for this scenario, so I thought of asking for help on Stackoverflow.

What I want to achieve:

Record video using MediaRecorder.

Change the output file when a specific time limit is reached without stopping and restarting the recording.

I’m open to any suggestions or guidance on how to get started with modifying MediaRecorder itself to implement this feature.

Additional details:

I’m using Android as the development platform.

I’ve already explored using MediaRecorder.OnInfoListener but it doesn’t seem to provide the functionality I need.

I appreciate any help or insights you can provide.

I tried modifying the MediaRecorder.OnInfoListener to change the output file based on the time limit.

LEAVE A COMMENT