- max_duration_ms
- the maximum duration in ms (if zero or negative, disables the duration limit)
Type Reason Java.Lang.IllegalArgumentException
Sets the maximum duration (in ms) of the recording session. Call this after setOutFormat() but before prepare(). After recording reaches the specified duration, a notification will be sent to the NoType:android/media/MediaRecorder$OnInfoListener;Href=../../../reference/android/media/MediaRecorder.OnInfoListener.html with a "what" code of MediaRecorder.MEDIA_RECORDER_INFO_MAX_DURATION_REACHED and recording will be stopped. Stopping happens asynchronously, there is no guarantee that the recorder will have stopped by the time the listener is notified.