nosnia-audio-recorder 0.6.2 → 0.6.3
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.
|
@@ -204,14 +204,13 @@ RCT_EXPORT_METHOD(startRecording:(NSDictionary *)options
|
|
|
204
204
|
|
|
205
205
|
// Create recording settings dictionary with safety checks
|
|
206
206
|
@try {
|
|
207
|
-
// Use
|
|
208
|
-
// AVAudioRecorder doesn't support direct AAC encoding on all devices
|
|
207
|
+
// Use IMA4 codec - most compatible across all iOS versions
|
|
209
208
|
NSDictionary *recordingSettings = @{
|
|
210
|
-
AVFormatIDKey: @(
|
|
211
|
-
AVSampleRateKey: @(
|
|
209
|
+
AVFormatIDKey: @(kAudioFormatIMA4),
|
|
210
|
+
AVSampleRateKey: @(16000),
|
|
212
211
|
AVNumberOfChannelsKey: @(1),
|
|
213
|
-
AVEncoderBitRateKey: @(
|
|
214
|
-
AVEncoderAudioQualityKey: @(
|
|
212
|
+
AVEncoderBitRateKey: @(32000),
|
|
213
|
+
AVEncoderAudioQualityKey: @(AVAudioQualityLow)
|
|
215
214
|
};
|
|
216
215
|
|
|
217
216
|
// Validate settings dictionary created successfully
|
package/package.json
CHANGED