flutter_audio_recorder
flutter_audio_recorder copied to clipboard
Unsupported value for standard codec
On iOS, if you are on a call, FaceTime, Hangouts or similar and try to initialize FlutterAudioRecorder, it crashes with "Unsupported value for standard codec".
The reason is in _channel.invokeMethod('init'...)
. The init method can return FlutterError, but there isn't any handling of it.
@edukun I have noticed this issue when on the phone and trying to start recording.
In my pull request it's fixed
@edukun looks like the library may be unsupported, would you like to fork and we can support one together?
Sounds good! I won't be able to dedicate a lot of time, but I'll do what I can
El jue., 4 jun. 2020 17:11, Austin Adams [email protected] escribió:
@edukun https://github.com/edukun looks like the library may be unsupported, would you like to fork and we can support one together?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rmbrone/flutter_audio_recorder/issues/27#issuecomment-638914373, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMALDF6ASJ7DLTJHNAKFCDRU62S7ANCNFSM4M6W65IQ .
@austbot @edukun yes, I agree. Please share your version , I believe this plugin has been abandoned
https://github.com/austbot/flutter_audio_recorder @ariefwijaya @edukun Here is my fork the main reason I wanted to fork was to fix the bluetooth issues. I'll be working on that soon. woul you both like to be collaborators on the project ?
Is this fixed? Should I point my pubspec to a specific branch? thanks in advance.
I got the exact issue. We are using .wav audio format which is not supported by some devices like iPhone 8+, iPhone XR etc. After changing to audio format as .aac, crash issue solved. Below is the line of code.
FlutterAudioRecorder2 _recorder = FlutterAudioRecorder2(customPath,audioFormat: AudioFormat.AAC); //.wav is not supporting in iphone 8 plus and iphone X