Skip to content

Commit fd91c5d

Browse files
committed
fix record max time
1 parent 32aae7f commit fd91c5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android/chatinput/src/main/java/cn/jiguang/imui/chatinput/record/RecordHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ public void startRecording() {
5656
}
5757
recorder = new MediaRecorder();
5858
recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
59-
recorder.setMaxDuration(MAX_INTERVAL_TIME);
60-
recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
59+
recorder.setMaxDuration(MAX_INTERVAL_TIME * 1000);
60+
recorder.setOutputFormat(MediaRecorder.OutputFormat.DEFAULT);
6161
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC);
6262
// recorder.setAudioEncodingBitRate();
6363
// recorder.setAudioSamplingRate();

0 commit comments

Comments
 (0)