nosnia-audio-recorder 0.6.1 → 0.6.2
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,10 +204,10 @@ RCT_EXPORT_METHOD(startRecording:(NSDictionary *)options
|
|
|
204
204
|
|
|
205
205
|
// Create recording settings dictionary with safety checks
|
|
206
206
|
@try {
|
|
207
|
-
// Use
|
|
207
|
+
// Use ILBC codec which is universally supported on iOS
|
|
208
208
|
// AVAudioRecorder doesn't support direct AAC encoding on all devices
|
|
209
209
|
NSDictionary *recordingSettings = @{
|
|
210
|
-
AVFormatIDKey: @(
|
|
210
|
+
AVFormatIDKey: @(kAudioFormatiLBC),
|
|
211
211
|
AVSampleRateKey: @(8000), // ILBC requires 8000 Hz
|
|
212
212
|
AVNumberOfChannelsKey: @(1),
|
|
213
213
|
AVEncoderBitRateKey: @(15400),
|
package/package.json
CHANGED