Skip to content

Commit bb57a30

Browse files
authored
fix: Update the default maximum recording time to 10 minutes (#462)
Performance Summary * It takes 5~6 seconds to convert 10-minute audio file * It takes 2 seconds to send a voice message [UIKIT-3514](https://sendbird.atlassian.net/browse/UIKIT-3514)
1 parent f55aac9 commit bb57a30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/consts.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ export const SCROLL_BUFFER = 10;
22

33
// voice message record
44
export const VOICE_RECORDER_CLICK_BUFFER_TIME = 250;
5-
export const VOICE_RECORDER_DEFAULT_MIN = 1000;
6-
export const VOICE_RECORDER_DEFAULT_MAX = 60000;
5+
export const VOICE_RECORDER_DEFAULT_MIN = 1000; // 1 seconds
6+
export const VOICE_RECORDER_DEFAULT_MAX = 600000; // 10 minutes
77
export const VOICE_RECORDER_MIME_TYPE = 'audio/webm';
88
export const VOICE_RECORDER_AUDIO_BITS = 128000;
99

0 commit comments

Comments
 (0)