flutter_audio_recorder icon indicating copy to clipboard operation
flutter_audio_recorder copied to clipboard

Unsupported value for standard codec

Open edukun opened this issue 4 years ago • 8 comments

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 avatar May 12 '20 10:05 edukun

@edukun I have noticed this issue when on the phone and trying to start recording.

austbot avatar Jun 04 '20 14:06 austbot

In my pull request it's fixed

edukun avatar Jun 04 '20 14:06 edukun

@edukun looks like the library may be unsupported, would you like to fork and we can support one together?

austbot avatar Jun 04 '20 15:06 austbot

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 .

edukun avatar Jun 04 '20 15:06 edukun

@austbot @edukun yes, I agree. Please share your version , I believe this plugin has been abandoned

ariefwijaya avatar Jun 12 '20 01:06 ariefwijaya

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 ?

austbot avatar Jun 15 '20 21:06 austbot

Is this fixed? Should I point my pubspec to a specific branch? thanks in advance.

eduardothiesen avatar May 21 '21 17:05 eduardothiesen

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

MaheshPeri19 avatar Apr 28 '22 08:04 MaheshPeri19