Canardoux / flutter_sound

Flutter plugin for sound. Audio recorder and player.
Mozilla Public License 2.0
877 stars 573 forks source link

[BUG] Android : minSdkVersion 18. #462

Closed Larpoux closed 3 years ago

Larpoux commented 4 years ago

6.0.1 Android : minSdkVersion 18 : 18 works fine for the player, but the recorder needs at least 24.

24 is really too recent. We must accept (at least) 21.

felixjunghans commented 4 years ago

Do you know why this problem occurs? I am successfully using Flutter Sound 5.x with minSDKVersion 21 for playback AND recording. So what has changed significantly from version 5 to 6?

Larpoux commented 4 years ago

Hi felix. There is absolutely NO CHANGES between 5 and 6 for recording to files. This minSDK problem is really a problem for me. I have no devices so old, and my emulator does not work correctely with SDK 21.

If you say that there is no problem in V5 with recording 21, this is good news. I am going to fix (again) the function isEncoderSupported to accept SDK 21.

felixjunghans commented 4 years ago

The only problem I had in version 5, I have described here and also described the fix directly. Otherwise I had absolutely no problems with version 5 and old Android devices.

felixjunghans commented 4 years ago

But I will test version 6 on old devices next week and give you feedback then.

Larpoux commented 4 years ago

OK Felix, I am preparing a 6.0.2. Probably this evening.

Larpoux commented 4 years ago

Felix :

I removed the recorder limitation to SDK 23 in my fork, but I would prefer if someone check on a real device before releasing a new version of Flutter Sound.

felixjunghans commented 4 years ago

Ok i can confirm that recording works on Samsung S5 neo (Android 6). So sdkVersion 23 is fine. I try to find an Android 5 Device to Test with. But for now minSDKVersion 23 should be fine.

Larpoux commented 3 years ago

Please re-open this issue if still problems

akshg05 commented 2 years ago

I am unable to play my recording on Emulator. I have tried minSdk 23. Yet to try on real device. Playing works fine -> I can hear the audio properly. Recording -> Throws no errors while recording. Playing the recording -> When I try playing the recording it plays it with the duration but I can hear nothing..literally nothing. I am using the default codecs.