rmbrone / flutter_audio_recorder

Flutter plugin that can support audio recording and level metering
MIT License
121 stars 150 forks source link

Unsupported value for standard codec #27

Open edukun opened 4 years ago

edukun commented 4 years ago

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.

austbot commented 4 years ago

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

edukun commented 4 years ago

In my pull request it's fixed

austbot commented 4 years ago

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

edukun commented 4 years ago

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 notifications@github.com 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 .

ariefwijaya commented 4 years ago

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

austbot commented 4 years ago

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 ?

eduardothiesen commented 3 years ago

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

MaheshPeri19 commented 2 years ago

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