stream-chat-react-native 5.30.0-beta.1 → 5.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-react-native",
|
|
3
3
|
"description": "The official React Native SDK for Stream Chat, a service for building chat applications",
|
|
4
|
-
"version": "5.30.0
|
|
4
|
+
"version": "5.30.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"company": "Stream.io Inc",
|
|
7
7
|
"name": "Stream.io Inc"
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"types": "types/index.d.ts",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"es6-symbol": "^3.1.3",
|
|
14
|
-
"stream-chat-react-native-core": "5.30.0
|
|
14
|
+
"stream-chat-react-native-core": "5.30.0"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"@react-native-camera-roll/camera-roll": ">=5.0.0",
|
|
@@ -171,16 +171,13 @@ const verifyAndroidPermissions = async () => {
|
|
|
171
171
|
export const Audio = AudioRecorderPackage
|
|
172
172
|
? {
|
|
173
173
|
pausePlayer: async () => {
|
|
174
|
-
console.log('Pause Player..');
|
|
175
174
|
await audioRecorderPlayer.pausePlayer();
|
|
176
175
|
},
|
|
177
176
|
resumePlayer: async () => {
|
|
178
|
-
console.log('Resume Player..');
|
|
179
177
|
await audioRecorderPlayer.resumePlayer();
|
|
180
178
|
},
|
|
181
179
|
startPlayer: async (uri, _, onPlaybackStatusUpdate) => {
|
|
182
180
|
try {
|
|
183
|
-
console.log('Starting Player..');
|
|
184
181
|
const playback = await audioRecorderPlayer.startPlayer(uri);
|
|
185
182
|
console.log({ playback });
|
|
186
183
|
audioRecorderPlayer.addPlayBackListener((status) => {
|
|
@@ -191,7 +188,6 @@ export const Audio = AudioRecorderPackage
|
|
|
191
188
|
}
|
|
192
189
|
},
|
|
193
190
|
startRecording: async (options: RecordingOptions, onRecordingStatusUpdate) => {
|
|
194
|
-
console.log('Starting recording..');
|
|
195
191
|
if (Platform.OS === 'android') {
|
|
196
192
|
try {
|
|
197
193
|
await verifyAndroidPermissions();
|
|
@@ -230,12 +226,14 @@ export const Audio = AudioRecorderPackage
|
|
|
230
226
|
}
|
|
231
227
|
},
|
|
232
228
|
stopPlayer: async () => {
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
229
|
+
try {
|
|
230
|
+
await audioRecorderPlayer.stopPlayer();
|
|
231
|
+
audioRecorderPlayer.removePlayBackListener();
|
|
232
|
+
} catch (error) {
|
|
233
|
+
console.log(error);
|
|
234
|
+
}
|
|
236
235
|
},
|
|
237
236
|
stopRecording: async () => {
|
|
238
|
-
console.log('Stopping recording..');
|
|
239
237
|
await audioRecorderPlayer.stopRecorder();
|
|
240
238
|
audioRecorderPlayer.removeRecordBackListener();
|
|
241
239
|
},
|