You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| filename | string | Gets or sets the recorded file name. |
217
+
| source | int |**Android Only** Sets the source for recording. Learn more here https://developer.android.com/reference/android/media/MediaRecorder.AudioSource|
218
+
| maxDuration | int |Gets or set the max duration of the recording session. Input in milliseconds, which is Android's format. Will be converted appropriately for iOS. |
219
+
| metering | boolean |Enables metering. This will allow you to inspect the audio level by calling the record instance's `getMeters` ,method. This will return dB on iOS, but an arbitrary amplitude number for Android. See the metering example for a way to convert the output to something resembling dB on Android. |
220
+
| format | int or enum |The Audio format to record in. On Android, use these Enums: https://developer.android.com/reference/android/media/AudioFormat#ENCODING_PCM_16BIT On ios, use these format options: https://developer.apple.com/documentation/coreaudiotypes/1572096-audio_format_identifiers|
221
+
| channels | int | Number of channels to record (mono, st) |
222
+
| sampleRate | int | The sample rate to record in. Default: 44100 |
223
+
| bitRate | int |**Android Only** The bitrate to record in. iOS automatically calculates based on `iosAudioQuality` flag. Default: 128000 |
224
+
| encoder | int or enum |**Android Only** Use https://developer.android.com/reference/android/media/MediaRecorder.AudioEncoder#AAC|
225
+
| iosAudioQuality | string | ios uses AVAudioQuality to determine encoder and bitrate. Accepts Min, Low, Medium, High, Max https://developer.apple.com/documentation/avfaudio/avaudioquality|
226
+
| errorCallback | function | Gets or sets the callback when an error occurs with the media recorder. Returns An object containing the native values for the error callback. |
227
+
| infoCallback | function | Gets or sets the callback to be invoked to communicate some info and/or warning about the media or its playback. Returns An object containing the native values for the info callback. |
// var recordSetting = new NSMutableDictionary((<any>[NSNumber.numberWithInt(kAudioFormatMPEG4AAC), NSNumber.numberWithInt((<any>AVAudioQuality).Medium.rawValue), NSNumber.numberWithFloat(16000.0), NSNumber.numberWithInt(1)]),
0 commit comments