-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shuffle plays a few songs then stops #147
Comments
Same issue with me. When I change the battery optimization to not optimized finamp works well. |
Is this still happening? If yes, could it be related to #491? |
I've also noticed some behavior like this as well with shuffle, randomly stopping, and not shuffling through all the songs (haven't tried looking into it yet) |
@Chaphasilor this has been happening to me so often I've been forced to look into it (see attached patch that shows logging changes) What seems to be happening so far:
I need to investigate a bit further and see why the player reaches the end of the audio and pushes the ProcessingState.completed event |
Based on just audio https://github.com/ryanheise/just_audio/blob/422a90e8d055dbc300516009ac6dbfc036eff46e/just_audio/android/src/main/java/com/ryanheise/just_audio/AudioPlayer.java#L343, Player.STATE_ENDED is somehow getting triggered I guess thats all from exo player Just first glance, finamp uses 2.18.1 of just audio, I looked through https://github.com/google/ExoPlayer/releases and didn't really see any release notes that apply except maybe this androidx/media#538 (but its not exactly the same issue) I'll need to make a custom build of exoplayer to get more info when it occurs :| |
Looks like that exoplayer repo is getting deprecated, the newer one has a bunch of issues that are semi relevant |
@shayaantx is that on the stable version or redesign beta? Could it be an issue with the queue (unlikely if it stops mid-song) or with pre-caching (more likely, player has to pause because all of the cached data has been played already)? You could try increasing the buffer duration to see if that helps... |
I'm always using whatever the latest in main is. I'm not sure yet, how do I increase the buffer duration? |
That's the stable version. Check the release page for the beta release, it corresponds to the You can increase the buffer duration by going to settings > Audio Service and setting Buffer Duration to a higher value. The new default for the redesign is 600 seconds. |
@shayaantx @NotFluffy @ltkun could you guys try again with the beta version 0.9.5? This should not be an issue there anymore... |
@Chaphasilor I'll do some testing and see if it reproduces |
So? Any results? :) |
Android with finamp version 0.5.1
When I shuffle an album, it will play a few songs then replay those same few songs before ending without playing all the other songs.
I seem to mostly get this happen when I am not actively on my phone, when it is "sleeping" and I am using a bluetooth device.
It mostly happens a first time then I have to redo the shuffle on the same album and all goes well.
Exemple :
40 track song
Plays first song of the list
Plays 5 shuffled songs
Replays the same 5 songs in the same order
Ends
The text was updated successfully, but these errors were encountered: