SimpMusic icon indicating copy to clipboard operation
SimpMusic copied to clipboard

Repeat and Repeat 1 Mode doesn't Work as it should!

Open rajinstar opened this issue 1 year ago • 20 comments

Describe the bug When I click on a song to play in one repeat mode, after the song finishes, the next song automatically starts playing. This happened after turning on "Repeat 1." This shouldn't be happening. Repeat 1 should play only the single song. It shouldn't change to another song. For example, if I play Sapphire in One Repeat Mode, after this song finishes, the next song starts playing automatically.

Also, I do understand that when I turn on the repeat mode, the songs continue to play. But after a certain time, the songs stop playing. For example, when I start playing my playlist in Repeat mode, the playlist should play in a loop and never stop playing. But, after the playlist's all songs end. Then the song stops.

To Reproduce the bug for repeat 1 mode Steps to reproduce the behavior:

  1. Go to a particular song named 'Sapphire'
  2. Click on 'the song to play it'
  3. Turn on the 'Repeat 1 mode'
  4. Now I see the error after finishing the Sapphire song; the next songs start playing.

To reproduce the bug for repeat mode Steps to reproduce the behavior:

  1. Go to a particular playlist named 'My favourite songs'
  2. Click on 'the playlist to play it'
  3. Turn on the 'Repeat mode'
  4. Now I see the error after finishing the playlist's songs; the songs stop playing.

Expected behavior Repeat 1 mode should play a single song, which I manually click on and play. The repeat mode should continue playing in a loop and never stop.

Screen Record Link: https://ewubd-my.sharepoint.com/:v:/g/personal/2021-1-10-086_std_ewubd_edu/EZxB9vE5niNArAChDi_AQrkBGpDhww1_dkHNFgz_QfeFxA?nav=eyJyZWZlcnJhbEluZm8iOnsicmVmZXJyYWxBcHAiOiJPbmVEcml2ZUZvckJ1c2luZXNzIiwicmVmZXJyYWxBcHBQbGF0Zm9ybSI6IldlYiIsInJlZmVycmFsTW9kZSI6InZpZXciLCJyZWZlcnJhbFZpZXciOiJNeUZpbGVzTGlua0NvcHkifX0&e=QUg7cc

rajinstar avatar Aug 01 '25 21:08 rajinstar

I've fixed the issue and submitted a PR no-1135

  • "Repeat One" now correctly repeats the same song.
  • "Repeat All" now loops the playlist continuously.

Let me know if any changes are required.

sarthak1103 avatar Aug 02 '25 16:08 sarthak1103

@rajinstar no way sir, the repeat works normally, please take a screen records

maxrave-dev avatar Aug 02 '25 17:08 maxrave-dev

@sarthak1103, Thank you so much, brother, for fixing the bug. Now, I can peacefully listen to all my favorite songs mine.

rajinstar avatar Aug 02 '25 17:08 rajinstar

@rajinstar please reproduce the issue and take screen record

maxrave-dev avatar Aug 02 '25 17:08 maxrave-dev

@rajinstar no way sir, the repeat works normally, please take a screen records

@maxrave-dev Then it only problem is with the Repeat 1 mode. But I don't know why the songs stop playing after some time.

rajinstar avatar Aug 02 '25 17:08 rajinstar

Repeat One is working normally https://github.com/user-attachments/assets/3f0783f2-6067-4e38-a611-f3d7e2b6c25e

maxrave-dev avatar Aug 02 '25 17:08 maxrave-dev

@rajinstar for clearing, please send your screen record

maxrave-dev avatar Aug 02 '25 17:08 maxrave-dev

Screen Record: https://jumpshare.com/s/PJRjuop9yKtZZUngcukg

@maxrave-dev I just provide the Video in the post and comment as well. Sorry there is no sound. But you can understand visually. Please watch it and then you will understand what is the bug actually.

rajinstar avatar Aug 02 '25 17:08 rajinstar

@rajinstar the file doesn't exist anymore. Can you upload/send another one?

Daddarco avatar Aug 04 '25 18:08 Daddarco

I will upload tomorrow for sure

rajinstar avatar Aug 04 '25 18:08 rajinstar

Try to use nightly version, may be old version error

maxrave-dev avatar Aug 05 '25 01:08 maxrave-dev

@maxrave-dev I tried it before installing the Beta. Before beta I was in the Stable Release version. But, face the same faith. Maybe the error was from the previous version. Just try to fix it.

rajinstar avatar Aug 05 '25 04:08 rajinstar

@Daddarco, here is the update link below and the updated Screen Record. Here I show individual songs and my playlist. So that it will be easily understandable that Repeat 1 is the cause here. Also, I don't think Repeat mode works. The Repeat mode stops playing after play all played all the songs in the playlist.

https://ewubd-my.sharepoint.com/:v:/g/personal/2021-1-10-086_std_ewubd_edu/EZxB9vE5niNArAChDi_AQrkBGpDhww1_dkHNFgz_QfeFxA?nav=eyJyZWZlcnJhbEluZm8iOnsicmVmZXJyYWxBcHAiOiJPbmVEcml2ZUZvckJ1c2luZXNzIiwicmVmZXJyYWxBcHBQbGF0Zm9ybSI6IldlYiIsInJlZmVycmFsTW9kZSI6InZpZXciLCJyZWZlcnJhbFZpZXciOiJNeUZpbGVzTGlua0NvcHkifX0&e=QUg7cc

rajinstar avatar Aug 05 '25 05:08 rajinstar

@rajinstar @maxrave-dev The repeat 1 bug happens when the crossfade is enabled (for example 5 seconds). If you disable it, it works fine. As for the normal repeat mode, It works for me and I can't reproduce the bug. Can you try to make a video about that too?

Daddarco avatar Aug 05 '25 08:08 Daddarco

@Daddarco I think you are right. That's maybe the case. I enable the Crossfade option. Maybe that's why these bugs are causing issues.

rajinstar avatar Aug 05 '25 08:08 rajinstar

@sarthak1103 brother, did you fix the bug while enabling the Crossfade option turned on?

rajinstar avatar Aug 05 '25 08:08 rajinstar

@Daddarco @maxrave-dev yes! Now I understand what's actually causing the bugs. Crossfade is the reason behind it. I don't but when I turn off the Crossfade the songs repeat in a loop in repeat 1 mode. Maybe this is because of the crossfade. Crossfades need to be fixed. Maybe Repeat mode making this issues while Crossfade turn on.

rajinstar avatar Aug 05 '25 08:08 rajinstar

@rajinstar can you please share your device details.

sarthak1103 avatar Aug 05 '25 16:08 sarthak1103

@rajinstar you are right sir the issue is with cross fade. I think the issue is just with repeat 1 @maxrave-dev please assign this bug to me I will fix this crossFade case.

sarthak1103 avatar Aug 05 '25 17:08 sarthak1103

@sarthak1103 my device details given below:

Device Name: POCO M2 Pro, RAM: 6 GB ROM: 64GB Android: 12 UI: MIUI 14.0.5 OS: Android

rajinstar avatar Aug 05 '25 17:08 rajinstar