Open zhushenwudi opened 2 years ago
Recently ran into this same error and found that it was because I had missed the permissions that were needed in the Android Setup instructions.
Took a look at your example repo, looks like you're missing those permissions in your AndroidManifest.xml
as well?
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
The submitted minimal reproduction project indeed has no permissions declared in the manifest, so that could well be it. @zhushenwudi , does that resolve your issue?
ok, i will test later
I have tested it and currently it can be played without any unresponsive issues. Quote issue #991 , found that the current setAudioSource method must be passed into the TAG attribute, otherwise an error will be reported. Please put the tag in the compulsory parameter, or check null on just_audio_background.dart 488 line before rotation type. it will be great
Which API doesn't behave as documented, and how does it misbehave? https://github.com/ryanheise/just_audio/issues/814#issue-1373717611
Minimal reproduction project Provide a link here using one of two options:
To Reproduce (i.e. user steps, not code) Steps to reproduce the behavior:
Error messages
when I click play button on arm64 api31 simulator will be ANR
Expected behavior Make the program no longer ANR and play the track without crashing
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Flutter SDK version
Additional context Add any other context about the problem here.