-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: async audio initial steps for Expo CLI * feat: add async audio for native cli * feat: add recording to message input context * feat: add playback support for native CLI for recordings * feat: audio playback support for expo cli * feat: async audio play in message list and improvements * feat: add audio speed change button * chore: upgrade rn-videi * feat: native android permissions * fix: permissions android * fix: improve async audio * fix: remove redundant console logs * fix: improve normalization of waveform * fix: add prop description * fix: improve theme * fix: add improvements to file upload preview * fix: translation issue * feat: add comments * feat: improve state of recording * feat: props improvement * docs: message input props * docs: lint fix * feat: add audio support guide * fix: delete voice recording * feat: enable async audio in TS app and Expo app * fix: normalization fix * test: fix tests
- Loading branch information
Showing
113 changed files
with
4,504 additions
and
1,190 deletions.
There are no files selected for viewing
Binary file added
BIN
+22.7 KB
...ocs/reactnative/assets/guides/audio-support/audio-attachment-upload-preview.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+17.4 KB
docusaurus/docs/reactnative/assets/guides/audio-support/audio-attachment.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+92.4 KB
...rus/docs/reactnative/assets/guides/audio-support/audio-recorder-lock-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+91.2 KB
...us/docs/reactnative/assets/guides/audio-support/audio-recording-in-progress.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+17.1 KB
...saurus/docs/reactnative/assets/guides/audio-support/audio-recording-preview.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+38.1 KB
docusaurus/docs/reactnative/assets/guides/audio-support/start-recording.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...ive/common-content/ui-components/channel/props/async_messages_lock_distance.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Controls how many pixels to the top side the user has to scroll in order to lock the recording view and allow the user to lift their finger from the screen without stopping the recording. | ||
|
||
| Type | Default | | ||
| ------ | ------- | | ||
| Number | 50 | |
5 changes: 5 additions & 0 deletions
5
...n-content/ui-components/channel/props/async_messages_minimum_press_duration.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Controls the minimum duration(in milliseconds) that the user has to press on the record button in the composer, in order to start recording a new voice message. | ||
|
||
| Type | Default | | ||
| ------ | ------- | | ||
| Number | 500 | |
5 changes: 5 additions & 0 deletions
5
...ommon-content/ui-components/channel/props/async_messages_multi_send_enabled.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
When it’s enabled, recorded messages won’t be sent immediately. Instead they will “stack up” in the composer allowing the user to send multiple voice recording as part of the same message. | ||
|
||
| Type | Default | | ||
| ------- | ------- | | ||
| Boolean | true | |
5 changes: 5 additions & 0 deletions
5
...content/ui-components/channel/props/async_messages_slide_to_cancel_distance.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Controls how many pixels to the leading side the user has to scroll in order to cancel the recording of a voice message. | ||
|
||
| Type | Default | | ||
| ------ | ------- | | ||
| Number | 100 | |
5 changes: 5 additions & 0 deletions
5
.../common-content/ui-components/channel/props/audio_attachment_upload_preview.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Component prop used to customize the audio attachment upload preview when its uploading/uploaded in the `MessageInput`. | ||
|
||
| Type | Default | | ||
| ------------- | ------------------------------------------------------------------- | | ||
| ComponentType | [`AudioAttachment`](../../../../ui-components/audio-attachment.mdx) | |
5 changes: 5 additions & 0 deletions
5
.../docs/reactnative/common-content/ui-components/channel/props/audio_recorder.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Custom UI component to render audio recorder controls in [MessageInput](../../../../ui-components/message-input.mdx). | ||
|
||
| Type | Default | | ||
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | | ||
| ComponentType | [`AudioRecorder`](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageInput/AudioRecorder.tsx) | |
5 changes: 5 additions & 0 deletions
5
...ctnative/common-content/ui-components/channel/props/audio_recording_enabled.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Controls whether the feature is enabled. | ||
|
||
| Type | Default | | ||
| ------- | ------- | | ||
| Boolean | false | |
5 changes: 5 additions & 0 deletions
5
...tive/common-content/ui-components/channel/props/audio_recording_in_progress.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Custom UI component to render audio recording in progress in [MessageInput](../../../../ui-components/message-input.mdx). It renders the waveform, duration etc, for the recording. | ||
|
||
| Type | Default | | ||
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| ComponentType | [`AudioRecordingInProgress`](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.tsx) | |
5 changes: 5 additions & 0 deletions
5
...e/common-content/ui-components/channel/props/audio_recording_lock_indicator.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Custom UI component to render audio recording lock indicator in [MessageInput](../../../../ui-components/message-input.mdx) that can be dragged up to lock the recording start. | ||
|
||
| Type | Default | | ||
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| ComponentType | [`AudioRecordingLockIndicator`](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.tsx) | |
5 changes: 5 additions & 0 deletions
5
...ctnative/common-content/ui-components/channel/props/audio_recording_preview.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Custom UI component to render audio recording preview in [MessageInput](../../../../ui-components/message-input.mdx) that allows playing the recording. | ||
|
||
| Type | Default | | ||
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| ComponentType | [`AudioRecordingPreview`](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.tsx) | |
5 changes: 5 additions & 0 deletions
5
...tnative/common-content/ui-components/channel/props/audio_recording_waveform.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Custom UI component to render audio recording waveform in [MessageInput](../../../../ui-components/message-input.mdx). | ||
|
||
| Type | Default | | ||
| ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| ComponentType | [`AudioRecordingWaveform`](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageInput/components/AudioRecorder/AudioRecordingWaveform.tsx) | |
5 changes: 5 additions & 0 deletions
5
...ive/common-content/ui-components/channel/props/start_audio_recording_button.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Custom UI component for audio recording mic button in [MessageInput](../../../../ui-components/message-input.mdx). | ||
|
||
| Type | Default | | ||
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ||
| ComponentType | [`StartAudioRecordingButton`](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageInput/components/AudioRecorder/AudioRecordingButton.tsx) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.