stream-chat-react-native 9.4.0-beta.4 → 9.4.0-beta.5
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": "9.4.0-beta.
|
|
4
|
+
"version": "9.4.0-beta.5",
|
|
5
5
|
"homepage": "https://www.npmjs.com/package/stream-chat-react-native",
|
|
6
6
|
"author": {
|
|
7
7
|
"company": "Stream.io Inc",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"es6-symbol": "^3.1.3",
|
|
32
32
|
"mime": "^4.0.7",
|
|
33
|
-
"stream-chat-react-native-core": "9.4.0-beta.
|
|
33
|
+
"stream-chat-react-native-core": "9.4.0-beta.5"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@react-native-camera-roll/camera-roll": ">=7.9.0",
|
|
@@ -111,6 +111,15 @@ class _Audio {
|
|
|
111
111
|
audioSet: {
|
|
112
112
|
// Android specific properties
|
|
113
113
|
AudioEncoderAndroid: AudioEncoderAndroidType.AAC,
|
|
114
|
+
// Pin nitro-sound 0.2.10+'s bitrate to 128 kbps. Its `.high` quality
|
|
115
|
+
// preset otherwise defaults to (48 kHz, 2ch, 192 kbps), a combination
|
|
116
|
+
// the iOS hardware AAC encoder rejects with
|
|
117
|
+
// kAudioFormatUnsupportedDataFormatError ('fmt?', OSStatus 1718449215)
|
|
118
|
+
// in AppStore signed binaries.
|
|
119
|
+
// https://www.osstatus.com/search/results?search=1718449215
|
|
120
|
+
// Older nitro-sound and the legacy `react-native-audio-recorder-player`
|
|
121
|
+
// ignore this key.
|
|
122
|
+
AudioEncodingBitRate: 128000,
|
|
114
123
|
AudioSourceAndroid: AudioSourceAndroidType.MIC,
|
|
115
124
|
OutputFormatAndroid: OutputFormatAndroidType.AAC_ADTS,
|
|
116
125
|
|
|
@@ -121,6 +130,11 @@ class _Audio {
|
|
|
121
130
|
? AVModeIOSOptionNitroSound.spokenaudio
|
|
122
131
|
: AVModeIOSOption.spokenaudio,
|
|
123
132
|
AVNumberOfChannelsKeyIOS: 2,
|
|
133
|
+
// Pair with `AudioEncodingBitRate` above override nitro-sound 0.2.10+'s
|
|
134
|
+
// 48 kHz default back to 44.1 kHz so the encoder gets the combo that
|
|
135
|
+
// 0.2.9 was implicitly using. Idempotent for older nitro-sound and the
|
|
136
|
+
// legacy lib (their default is already 44.1 kHz).
|
|
137
|
+
AVSampleRateKeyIOS: 44100,
|
|
124
138
|
},
|
|
125
139
|
isMeteringEnabled: true,
|
|
126
140
|
},
|