Skip to main content
Topic: Help indentify problem (since v1.4.1 foo_partyshuffle plugin stopped working) (Read 162 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Help indentify problem (since v1.4.1 foo_partyshuffle plugin stopped working)

Hi!

I have an issue regarding my plugin foo_partyshuffle.

This plugin allows to enable "Party mode": it is adding random tracks to the current playlist when the last track has just finished playing so the next track will continue playing immediately. This worked well until v1.4.

Since v1.4.1 it stopped working. After finishing playing the last song in the playlist it adds 10 new songs but it starts playing the first song in the playlist. It does not continue playing new added songs.

Could you please describe is there any breaking changes in API related to this functionality in 1.4.1?

And could you please quickly review plugin source code (it is small), maybe you will find anything which may cause this issue?

Thank you in advance.

Re: Help indentify problem (since v1.4.1 foo_partyshuffle plugin stopped working)

Reply #1
There was a code behavior change in 1.4.1: "Pressing “next” past the end of playlist now restarts the playlist even without “repeat” mode."
You can manually start playing the correct track you want with call to playlist_execute_default_action().
PS: you should change your random number generator. Now your party shuffle will never pick from all tracks for people who have over 32K tracks in their library.

Re: Help indentify problem (since v1.4.1 foo_partyshuffle plugin stopped working)

Reply #2
There was a code behavior change in 1.4.1: "Pressing “next” past the end of playlist now restarts the playlist even without “repeat” mode."
You can manually start playing the correct track you want with call to playlist_execute_default_action().
PS: you should change your random number generator. Now your party shuffle will never pick from all tracks for people who have over 32K tracks in their library.

Thank you for the answer. I will try to fix it.

 
SimplePortal 1.0.0 RC1 © 2008-2019