SimformSolutionsPvtLtd / audio_waveforms

Use this plugin to generate waveforms while recording audio in any file formats supported by given encoders or from audio files. We can use gestures to scroll through the waveforms or seek to any position while playing audio and also style waveforms
https://pub.dev/packages/audio_waveforms
MIT License
283 stars 150 forks source link

[iOS] - Unhandled Exception: PlatformException #335

Closed Hvt261 closed 2 months ago

Hvt261 commented 2 months ago

I face the issue on iOS when start recording:

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(AudioWaveforms, Failed to start recording, The operation couldn’t be completed. (OSStatus error 1718449215.), null)

0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:648:7)

1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:334:18)

#2 AudioWaveformsInterface.record (package:audio_waveforms/src/base/audio_waveforms_interface.dart:19:25) #3 RecorderController.record (package:audio_waveforms/src/controllers/recorder_controller.dart:196:26)
Hvt261 commented 2 months ago

I closed this issue because of ios recording only work with ouput is ".m4a" and iosEncoder is "kAudioFormatMPEG4AAC"