huaiwei 9.0.0 PlatformException (PlatformException(error, Attempt to invoke virtual method 'int android.media.AudioTrack.getPlayState()' on a null object reference, null,
PlatformException (PlatformException(error, Attempt to invoke virtual method 'int android.media.AudioTrack.getPlayState()' on a null object reference, null, java.lang.NullPointerException: Attempt to invoke virtual method 'int android.media.AudioTrack.getPlayState()' on a null object reference at xyz.canardoux.TauEngine.FlautoPlayerEngine._isPlaying(FlautoPlayerEngine.java:255) at xyz.canardoux.TauEngine.FlautoPlayer.getPlayerState(FlautoPlayer.java:138) at xyz.canardoux.fluttersound.FlutterSoundPlayer.getPlayerState(FlutterSoundPlayer.java:154) at xyz.canardoux.fluttersound.FlutterSoundPlayer.getStatus(FlutterSoundPlayer.java:119) at xyz.canardoux.fluttersound.FlutterSoundSession.log(FlutterSoundSession.java:124) at xyz.canardoux.fluttersound.FlutterSoundPlayer.startPlayer(FlutterSoundPlayer.java:225) at xyz.canardoux.fluttersound.FlutterSoundPlayerManager.onMethodCall(FlutterSoundPlayerManager.java:120) at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:267) at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:292) at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:319) at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12) at android.os.Handler.handleCallback(Handler.java:891) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:207) at android.app.ActivityThread.main(ActivityThread.java:7470) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958) ))
flutter_sound: 9.28.0 Demo reproduction,await _mPlayer.startPlayerFromStream(
I recently worked on this issue. Please, use Taudio 10.x
got the same issue
I recently worked on this issue. Please, use Taudio 10.x
I've tried Taudio but it introduces another error mentioning (ERR_UNKNOWN), sorry i dont have all logs, i reverted back to flutter_sound because Taudio did to solve this issue.
Taudio has a Licence that is very constraining unlike Audio_sound that many people use. However, Taudio has more recent updates (like this fix). Do we need to assume that audio_sound is not going to be actively maintained anymore?