Open zh4dev opened 1 year ago
Launch the app
Which app? You didn't actually provide it.
Minimal reproduction project
It seems you deleted the instructions for this section, which is where you need to provide the link to the fork.
Launch the app
Which app? You didn't actually provide it.
Minimal reproduction project
It seems you deleted the instructions for this section, which is where you need to provide the link to the fork.
Sorry, i've update the information above, can you check please?
Again, you didn't actually follow the instructions by providing a link to the fork. Please read the instructions (all instructions) carefully. You have already taken up quite a bit of my time with this, so please read all of the instructions before taking the next step.
Again, you didn't actually follow the instructions by providing a link to the fork. Please read the instructions (all instructions) carefully. You have already taken up quite a bit of my time with this, so please read all of the instructions before taking the next step.
Hi Ryan, anyway sorry for late response, i found how to solve this, i'm using if/else condition inside of getRelativeIndex (line 515 on just_audio_background.dart), i've update the information above.
Can you please update your code, to solve this issue, so I don't use your project that I changed
I can't investigate this because you didn't provide a link to the fork. I mentioned something in my previous comment about reading all of the instructions before taking the next step. It seems you didn't do that because there is still no link to the fork.
I can't investigate this because you didn't provide a link to the fork. I mentioned something in my previous comment about reading all of the instructions before taking the next step. It seems you didn't do that because there is still no link to the fork.
I've update the information, on Minimal reproduction project section, is that what you need?
No, because you still didn't provide a link to the fork.
I'm getting crash reports about this although I cannot reproduce it locally. I have crash reports for Android 13 and 14 for Motorola and Oppo.
Null check operator used on a null value
at _PlayerAudioHandler.getRelativeIndex(just_audio_background.dart:627)
at _PlayerAudioHandler.previousIndex(just_audio_background.dart:622)
at _PlayerAudioHandler.hasPrevious(just_audio_background.dart:624)
at _PlayerAudioHandler._broadcastState(just_audio_background.dart:792)
at _PlayerAudioHandler.play(just_audio_background.dart:666)
at CompositeAudioHandler.play(audio_service.dart:2154)
at _JustAudioPlayer.play(just_audio_background.dart:241)
at AudioPlayer._sendPlayRequest(just_audio.dart:990)
at AudioPlayer._setPlatformActive.setPlatform(just_audio.dart:1490)
Which API doesn't behave as documented, and how does it misbehave? Hi, I have an issue when play an audio and implement with just audio background, it caused error because the index cannot be found or null value. Can you explain where the problem is? It's been a weeks, when i upgrade the version to newer, the error always showing.
Minimal reproduction project Link: https://github.com/ryanheise/just_audio/blob/minor/just_audio_background/lib/just_audio_background.dart Line 515 >>
To Reproduce (i.e. user steps, not code)
Error messages
Expected behavior Music should be can play and the crash is not appear, you can try to add if else inside of getRelativeIndex to be like this, i try to change your code and it's work, the error caused index is null, you force that null value to can be use on this logic, then caused error
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information): Ios
Flutter SDK version
Additional context Anyway i'm sorry, if i emailing you, thanks ryan for your help, appreciate it. Is there any solution for solve this? please let me know, thank you