Skip to content
This repository has been archived by the owner on Jun 8, 2018. It is now read-only.

randomly takes long time to play next shuffle track #14

Open
Geek648 opened this issue Sep 21, 2015 · 14 comments
Open

randomly takes long time to play next shuffle track #14

Geek648 opened this issue Sep 21, 2015 · 14 comments
Labels

Comments

@Geek648
Copy link

Geek648 commented Sep 21, 2015

Works OK most of the time (thanks btw, I like the interface) as a random music player on shuffle. But now and then a track finishes and there's silence for a while (at least 30 seconds, maybe more) before a new track starts. Is there any reason for this you can think of? Thanks

@souch souch added the bug label Sep 22, 2015
@souch
Copy link
Owner

souch commented Sep 22, 2015

I never had this bug, I don't know where it could come from. Perhaps it is because I almost never use random mode. You have set in the settings "Shuffle" checkbox is'nt it? On which version of Android this bug appears?

@Geek648
Copy link
Author

Geek648 commented Sep 24, 2015

I'm on an LG bought just over a year ago, on Jellybean

@souch
Copy link
Owner

souch commented Feb 17, 2016

I review a bit the code and can't see what can make this, sorry.
When the silence occurs does the player show that he is playing the new song or he stays (song is red) on the last track. What does the seek bar show too?

@souch
Copy link
Owner

souch commented Aug 30, 2016

Not enough input data. I close the issue.

@souch souch closed this as completed Aug 30, 2016
@edo9k
Copy link

edo9k commented Aug 30, 2016

I have the same problem, and not only on random mode, the player selectively decides when to play the song or just wait for as long as it feels like to play the next one.

My current phone is also a an LG phone, running Android 4.4.2.

I can try recording the bug using adb, does that help?

@souch
Copy link
Owner

souch commented Aug 31, 2016

I got an LG on JellyBean too and there is no such problem.
But I'll have a look taking into account that it appears also in normal mode.

@souch
Copy link
Owner

souch commented Sep 1, 2016

Yep, if you can have debug information it can help.

The code that trigger playing the next song roughly start from the onCompletion function in MusicService.java. But the problem can also be anywhere in between the end of the track and the start of the onCompletion function.

Perhaps you can try invert startNotification and playSong to see if it comes from the notification. Like this :

playSong();

if(foreground)
    startNotification();

Have you got the same bug using another music player (as the problem could come from the MediaPlayer class that comes along with Android)?

@souch souch reopened this Sep 1, 2016
@edo9k
Copy link

edo9k commented Sep 2, 2016

No, the stock music player plays tracks normally in all modes. Could it possibly be something related to permissions? I installed SMP from F-Droid, and all F-Droid apps seem to have less privileged permissions than the rest on the system.

Anyhow, I'll record the adb variable dump this weekend and post it here.

Thanks a lot!

@souch
Copy link
Owner

souch commented Sep 7, 2016

I don't think it could be related to permissions, especially if the problem appears randomly.

@souch
Copy link
Owner

souch commented Feb 10, 2017

The problem appears to me too, when the phone was locked and an audio jack was plugged to the phone.
Did this appear to you in the same context?

@edo9k
Copy link

edo9k commented Feb 13, 2017

No, the audio would stop playing randomly both with and without earphones plugged into the audio jack.
But I no longer have the device, so I cannot reproduce the error anymore.
(if no one else is complaining about this, I suggest you close the issue)

@souch
Copy link
Owner

souch commented Feb 14, 2017

Ok, thanks to answer. You mean the error does not reproduce with the new device, or that mean you do not use anymore SicMu player?

@edo9k
Copy link

edo9k commented Feb 15, 2017

I still use it, and the error is gone.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants
@edo9k @Geek648 @souch and others