flutter_audio_recorder
flutter_audio_recorder copied to clipboard
Migrate to Android embedding v2 + Support AAC codec
This pull request will address two issues of Android implementation:
- Warning about old Android embedding implementation
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Warning
──────────────────────────────────────────────────────────────────────────────
Your Flutter application is created using an older version of the Android
embedding. It's being deprecated in favor of Android embedding v2. Follow the
steps at
https://flutter.dev/go/android-project-migration
to migrate your project.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- Not support AAC codec #9
Working status:
- [x] Migrate to Android embedding v2
- [x] Support AAC codec
@hnvn I got the error message when recording the audio after that stopped the audio . It's make my app crash :'(
Details : I/OMXClient(20139): IOmx service obtained W/ExtendedACodec(20139): Failed to get extension for extradata parameter E/AndroidRuntime(20139): FATAL EXCEPTION: Audio Processing Thread E/AndroidRuntime(20139): Process: com.ccc.jobchat.stg, PID: 20139 E/AndroidRuntime(20139): java.lang.IllegalStateException E/AndroidRuntime(20139): at android.media.MediaCodec.native_dequeueInputBuffer(Native Method) E/AndroidRuntime(20139): at android.media.MediaCodec.dequeueInputBuffer(MediaCodec.java:2726) E/AndroidRuntime(20139): at com.zeno.flutter_audio_recorder.AACRecordThread.handleCodecInput(AACRecordThread.java:187) E/AndroidRuntime(20139): at com.zeno.flutter_audio_recorder.AACRecordThread.run(AACRecordThread.java:147) E/AndroidRuntime(20139): at java.lang.Thread.run(Thread.java:919)
Please help me check it again ! Thank you so much !
Hey guys, is there any update on the v2 embedding support?