PDA

View Full Version : Random Play mode



Philip Meyer
2005-09-20, 01:09
I'm finding two issues with this recently:

1. I have it configured to keep 10 tracks in the current playlist. This used to remove a track after it had finished playing, and then add another track to the end. Now it seems to keep the tracks in the playlist (not deleting the first track), so for example I am now seeing track 5 of 14.

2. I mapped the "random songs" mode to press-and-hold Shuffle button. When I press and hold Shuffle, I see the normal shuffle mode change ("Shuffle by song" briefly apears on the screen). I think that if I press shuffle again a few times to return the shuffle mode to none, this interrupts the random play mode, so it doesn't add songs any more. Is there a way of stopping the single-click behaviour from firing for the shuffle button when I hold the button down? I thought I had configured this to work in a previous release (when it was a plugin).

Phil

max.spicer
2005-09-20, 04:06
1) This is deliberate. The default behaviour of Random Mix is now to preserve the playlist history. However, you can get the old behaviour back by setting an option. Have a look in the web ui for the plugin.

2) Don't know, I'm afraid.

Max


I'm finding two issues with this recently:

1. I have it configured to keep 10 tracks in the current playlist. This used to remove a track after it had finished playing, and then add another track to the end. Now it seems to keep the tracks in the playlist (not deleting the first track), so for example I am now seeing track 5 of 14.

2. I mapped the "random songs" mode to press-and-hold Shuffle button. When I press and hold Shuffle, I see the normal shuffle mode change ("Shuffle by song" briefly apears on the screen). I think that if I press shuffle again a few times to return the shuffle mode to none, this interrupts the random play mode, so it doesn't add songs any more. Is there a way of stopping the single-click behaviour from firing for the shuffle button when I hold the button down? I thought I had configured this to work in a previous release (when it was a plugin).

Phil

oreillymj
2005-09-20, 04:14
Philip,

I noticed the same issue as you mention in 1) below, but I didn't mention it here as
1) I didn't want to come across as a moaner.
2) It's so obvious, that I was sure someone else would spot it.

Here's what I've seen.

When I select Random play -> songs, I get an initial list of 10 songs.
If I skip a track or pause/resume a track, the list stays with the initial 10 and they do not get replaced.
I also see a small display glitch when navigating the Random mix menu. I have Random mix set to be the 2nd item in my menu structure below Now Playing.

Also, there is the outstanding bug (that applies to normal playback & playlists) where if I pause a song within the last minute of a track, and then resume, the song plays to the end and the player just sits there and does not play the next song in the playlist.

dean
2005-09-20, 07:54
Please file bugs for these issues on http://bugs.slimdevices.com/ so
we can track and fix them.

Thanks!

On Sep 20, 2005, at 4:14 AM, oreillymj wrote:

>
> Philip,
>
> I noticed the same issue as you mention in 1) below, but I didn't
> mention it here as
> 1) I didn't want to come across as a moaner.
> 2) It's so obvious, that I was sure someone else would spot it.
>
> Here's what I've seen.
>
> When I select Random play -> songs, I get an initial list of 10 songs.
> If I skip a track or pause/resume a track, the list stays with the
> initial 10 and they do not get replaced.
> I also see a small display glitch when navigating the Random mix menu.
> I have Random mix set to be the 2nd item in my menu structure below
> Now
> Playing.
>
> Also, there is the outstanding bug (that applies to normal playback &
> playlists) where if I pause a song within the last minute of a track,
> and then resume, the song plays to the end and the player just sits
> there and does not play the next song in the playlist.
>
>
> --
> oreillymj
>

max.spicer
2005-09-20, 09:01
Are you running the latest nightly? I can't reproduce any of these problems. If you create bugs, please post the numbers here. The plugin certainly shouldn't stop creating new tracks just because you've skipped a track or paused it. You're not pausing with the off button, are you?

Thanks,

Max



When I select Random play -> songs, I get an initial list of 10 songs.
If I skip a track or pause/resume a track, the list stays with the initial 10 and they do not get replaced.
I also see a small display glitch when navigating the Random mix menu. I have Random mix set to be the 2nd item in my menu structure below Now Playing.

oreillymj
2005-09-20, 09:19
Ok, I had trouble logging into my bugzilla, so I've created a new account.

I'm running yesterday's nightly.
Let me go home, change the "Remove Played Songs" setting so it does clear out the list. Change the number of songs in the random mix to 3 and do some testing.

Are there particular logs that would be helpful to capture?


I think the issue with pausing/resuming a song near the end causing the player to ignore the rest of the playlist has a bug opened for it, but I can't find it.

I'm only guessing here, but it would appear that if you press pause when the player has the remainder of a song buffered, it doesn't send any further requests for data to the server even when the song completes and the buffer empties.

kdf
2005-09-20, 09:48
Quoting oreillymj <oreillymj.1vo13c (AT) no-mx (DOT) forums.slimdevices.com>:


> Are there particular logs that would be helpful to capture?

d_plugins should tell you any state changes in the RandomPlay plugin.
-k

oreillymj
2005-09-20, 12:02
ok just started testing with
SlimServer Version: 6.2b1 - 4356 - Windows XP - EN - cp1252

Set Random Mix to 5 songs and when I tried to change Remove Played Songs to "Remove played Songs", Slim.exe crashed.

Here's the Windows Event log entry.

The following information is part of the event: Undefined subroutine &Plugins::RandomPlay::Plugin::validateTrueFalse called at /PerlApp/Slim/Web/Setup.pm line 2950.

kdf
2005-09-20, 12:15
Quoting oreillymj <oreillymj.1vo8qb (AT) no-mx (DOT) forums.slimdevices.com>:

>
> ok just started testing with
> SlimServer Version: 6.2b1 - 4356 - Windows XP - EN - cp1252
>
> Set Random Mix to 5 songs and when I tried to change Remove Played
> Songs to "Remove played Songs", Slim.exe crashed.
>
> Here's the Windows Event log entry.
>
> The following information is part of the event: Undefined subroutine
> &Plugins::RandomPlay::Plugin::validateTrueFalse called at
> /PerlApp/Slim/Web/Setup.pm line 2950.
>]
That crash was fixed yesterday (at rev 4348). you'll need today's build.
-kdf

kdf
2005-09-20, 12:28
Quoting kdf <slim-mail (AT) deane-freeman (DOT) com>:

> That crash was fixed yesterday (at rev 4348).
sorry, that was 43_5_8

oreillymj
2005-09-20, 12:50
ok, I'll grab the latest nightly. I do notice that the playlist is extending as expected. I also don't see the graphic glitch I saw last week.
I'm thinking the behaviour of played items not getting choppped from the top of the playlist was confusing me.


What debgging option do you recommend enabling to capture the behaviour of the player stalling when paused/resumed in the last minute or so of a song.

d_stream
d_slimproto

kdf
2005-09-20, 13:02
Quoting oreillymj <oreillymj.1vob1o (AT) no-mx (DOT) forums.slimdevices.com>:

> What debgging option do you recommend enabling to capture the behaviour
> of the player stalling when paused/resumed in the last minute or so of a
> song.
>
> d_stream
> d_slimproto
d_source

I expect that this is due to entering a playout_* mode (which d_source will
show) and the player isn't getting restarted properly on a resume.

-kdf

oreillymj
2005-09-20, 13:31
Ok, so I think I've captured what happens in the attached logs.
I repeated this twice to make sure it wasn't a fluke.

I played an mp3 until there was < 1 minute remaining. I'm assuming the remainder of the song was in the SB2's buffer. I then paused.

I enabled d_source, d_slimproto_v & d_stream_v and resumed.

The player plays the end of the track and does not proceed to the next item in the playlist.

I then enabled d_playlist to see what was going on.

Maybe this makes sense.

2005-09-20 21:26:01.7995 new state: OP
2005-09-20 21:26:01.7997 state: OP, framelen: 0, inbuflen: 0
2005-09-20 21:26:01.7999 attempting to read 4 bytes
2005-09-20 21:26:01.8000 no more to read.
2005-09-20 21:26:02.7968 Slimproto client readable: 192.168.2.10:55866
2005-09-20 21:26:02.7971 state: OP, framelen: 0, inbuflen: 0
2005-09-20 21:26:02.7972 attempting to read 4 bytes
2005-09-20 21:26:02.7974 Got 4 bytes from client, 0 remaining
2005-09-20 21:26:02.7976 new state: LENGTH
2005-09-20 21:26:02.7977 state: LENGTH, framelen: 0, inbuflen: 0
2005-09-20 21:26:02.7979 attempting to read 4 bytes
2005-09-20 21:26:02.7981 Got 4 bytes from client, 0 remaining
2005-09-20 21:26:02.7983 new state: DATA
2005-09-20 21:26:02.7984 state: DATA, framelen: 41, inbuflen: 0
2005-09-20 21:26:02.7986 attempting to read 41 bytes
2005-09-20 21:26:02.7988 Got 41 bytes from client, 0 remaining
2005-09-20 21:26:02.7993 output size: 3528000
output fullness: 0
elapsed seconds: 250
2005-09-20 21:26:02.7995 new state: OP
2005-09-20 21:26:02.7997 state: OP, framelen: 0, inbuflen: 0
2005-09-20 21:26:02.7999 attempting to read 4 bytes
2005-09-20 21:26:02.8000 no more to read.
2005-09-20 21:26:03.7968 Slimproto client readable: 192.168.2.10:55866
2005-09-20 21:26:03.7971 state: OP, framelen: 0, inbuflen: 0
2005-09-20 21:26:03.7972 attempting to read 4 bytes
2005-09-20 21:26:03.7974 Got 4 bytes from client, 0 remaining
2005-09-20 21:26:03.7976 new state: LENGTH
2005-09-20 21:26:03.7977 state: LENGTH, framelen: 0, inbuflen: 0
2005-09-20 21:26:03.7979 attempting to read 4 bytes
2005-09-20 21:26:03.7981 Got 4 bytes from client, 0 remaining
2005-09-20 21:26:03.7983 new state: DATA
2005-09-20 21:26:03.7984 state: DATA, framelen: 41, inbuflen: 0
2005-09-20 21:26:03.7986 attempting to read 41 bytes
2005-09-20 21:26:03.7988 Got 41 bytes from client, 0 remaining
2005-09-20 21:26:03.7993 output size: 3528000
output fullness: 0
elapsed seconds: 250
2005-09-20 21:26:03.7995 new state: OP
2005-09-20 21:26:03.7997 state: OP, framelen: 0, inbuflen: 0
2005-09-20 21:26:03.7999 attempting to read 4 bytes
2005-09-20 21:26:03.8000 no more to read.
2005-09-20 21:26:04.1827 currentPlaylistChangeTime : Tue Sep 20 21:17:49 2005
2005-09-20 21:26:04.1831 currentPlaylistRender : Tue Sep 20 21:17:54 2005
2005-09-20 21:26:04.1834 currentPlaylistRenderSkin :
2005-09-20 21:26:04.1837 currentPlaylistRenderStart: 0
2005-09-20 21:26:04.1840 skinOverride:
2005-09-20 21:26:04.1843 start: 0
2005-09-20 21:26:04.1847 Skipping playlist build - not modified.

Philip Meyer
2005-09-20, 15:21
>1. I have it configured to keep 10 tracks in the current playlist. This used to remove a track after it had finished playing, and then add another track to the end. Now it seems to keep the tracks in the playlist (not deleting the first track), so for example I am now seeing track 5 of 14.
>
Max pointed out that there's a new preference setting to enable/disable this new feature. Cheers!

>2. I mapped the "random songs" mode to press-and-hold Shuffle button. When I press and hold Shuffle, I see the normal shuffle mode change ("Shuffle by song" briefly apears on the screen). I think that if I press shuffle again a few times to return the shuffle mode to none, this interrupts the random play mode, so it doesn't add songs any more. Is there a way of stopping the single-click behaviour from firing for the shuffle button when I hold the button down? I thought I had configured this to work in a previous release (when it was a plugin).
>
Any ideas about this one?

oreillymj
2005-09-20, 16:01
I think I've figured out what I was seeing.

Apart from the pause issue I mentioned earlier, which I need to move out of this thread and log a bug on, there seems to be something weird happening if I skip a couple of tracks.

I got Random Mix set to 10 tracks, removing the oldest track.

If I skip forward 2 or three tracks, the playlist seems to grow and never remove the oldest items. At the moment I've got 22 items in my playlist.

max.spicer
2005-09-21, 00:38
Skip back to the 2nd post in this thread:

This is deliberate. The default behaviour of Random Mix is now to preserve the playlist history. However, you can get the old behaviour back by setting an option. Have a look in the web ui for the plugin.

Max


I think I've figured out what I was seeing.

Apart from the pause issue I mentioned earlier, which I need to move out of this thread and log a bug on, there seems to be something weird happening if I skip a couple of tracks.

I got Random Mix set to 10 tracks, removing the oldest track.

If I skip forward 2 or three tracks, the playlist seems to grow and never remove the oldest items. At the moment I've got 22 items in my playlist.

oreillymj
2005-09-21, 11:58
Yes but I have Remove Played Songs enabled, going back to the old behaviour of the plugin.
When I skip a couple of tracks my playlist starts expanding, with the older items not getting removed. The playlist doesn't stay at 10 items.

max.spicer
2005-09-22, 02:57
Got you, sorry. I'll have a look out for this today. Are you skipping forwards or backwards? I've noticed that the plugin adds new songs when you skip backwards, which it really shouldn't do.

Max


Yes but I have Remove Played Songs enabled, going back to the old behaviour of the plugin.
When I skip a couple of tracks my playlist starts expanding, with the older items not getting removed. The playlist doesn't stay at 10 items.

oreillymj
2005-09-22, 05:20
I only noticed this when skipping forward, either with the remote control, or by going to Now Playing and pressing down to move to later entries in the playlist then pressing play.

Most people will not notice this as the default behaviour now is not to delete old items and let the playlist expland.

grov
2005-09-22, 06:34
I'd just like to throw in my observations of problems I've had when playing back random albums - Slimserver never seems to get past the 2nd album.

I've done a bit of debugging and it seems the random plugin is getting confused when the 2nd album is added to the playlist, and looses track of the number of tracks that remain.

In the log below, the first album played had 9 tracks, the 2nd had 8. When the 2nd album starts playing, RandomPlay seems to think there are 17 tracks remaining...

- Running 20 Sept 6.2b1 Nightly

2005-09-22 14:16:31.3721 Starting random selection for type: [album]
2005-09-22 14:16:31.3755 RandomPlay: Playing album: Turn of the Tides, 309
2005-09-22 14:16:31.4843 RandomPlay: starting callback for continuous random play.
2005-09-22 14:16:31.4844 RandomPlay: Playing continuous album mode with 9 items
2005-09-22 14:16:31.8586 RandomPlay: recieved command newsong
2005-09-22 14:16:31.8587 RandomPlay: while in mode: album
2005-09-22 14:16:31.8588 from from 192.168.0.2
2005-09-22 14:16:40.1555 RandomPlay: recieved command open
2005-09-22 14:16:40.1556 RandomPlay: while in mode: album
2005-09-22 14:16:40.1556 from from 192.168.0.2
2005-09-22 14:16:40.2774 RandomPlay: recieved command playlist
2005-09-22 14:16:40.2775 RandomPlay: while in mode: album
2005-09-22 14:16:40.2775 from from 192.168.0.2
2005-09-22 14:16:40.4107 RandomPlay: recieved command newsong
2005-09-22 14:16:40.4108 RandomPlay: while in mode: album
2005-09-22 14:16:40.4109 from from 192.168.0.2
2005-09-22 14:16:40.4109 RandomPlay: new song detected, stripping off completed track
2005-09-22 14:16:40.4110 RandomPlay: 8 items remaining
2005-09-22 14:16:41.7949 RandomPlay: recieved command open
2005-09-22 14:16:41.7950 RandomPlay: while in mode: album
2005-09-22 14:16:41.7951 from from 192.168.0.2
2005-09-22 14:16:41.9172 RandomPlay: recieved command playlist
2005-09-22 14:16:41.9173 RandomPlay: while in mode: album
2005-09-22 14:16:41.9174 from from 192.168.0.2
2005-09-22 14:16:42.0110 RandomPlay: recieved command newsong
2005-09-22 14:16:42.0111 RandomPlay: while in mode: album
2005-09-22 14:16:42.0111 from from 192.168.0.2
2005-09-22 14:16:42.0112 RandomPlay: new song detected, stripping off completed track
2005-09-22 14:16:42.0113 RandomPlay: 7 items remaining
...
2005-09-22 14:16:58.8566 RandomPlay: recieved command open
2005-09-22 14:16:58.8567 RandomPlay: while in mode: album
2005-09-22 14:16:58.8568 from from 192.168.0.2
2005-09-22 14:16:58.9650 RandomPlay: recieved command playlist
2005-09-22 14:16:58.9651 RandomPlay: while in mode: album
2005-09-22 14:16:58.9652 from from 192.168.0.2
2005-09-22 14:16:59.0912 RandomPlay: recieved command newsong
2005-09-22 14:16:59.0913 RandomPlay: while in mode: album
2005-09-22 14:16:59.0914 from from 192.168.0.2
2005-09-22 14:16:59.0914 RandomPlay: new song detected, stripping off completed track
2005-09-22 14:16:59.0876 Starting random selection for type: [album]
2005-09-22 14:16:59.0956 RandomPlay: Adding album: Chronologie, 109
2005-09-22 14:16:59.2653 RandomPlay: starting callback for continuous random play.
2005-09-22 14:16:59.2655 RandomPlay: Playing continuous album mode with 17 items
2005-09-22 14:17:01.0594 RandomPlay: recieved command open
2005-09-22 14:17:01.0595 RandomPlay: while in mode: album
2005-09-22 14:17:01.0596 from from 192.168.0.2
2005-09-22 14:17:01.2401 RandomPlay: recieved command playlist
2005-09-22 14:17:01.2402 RandomPlay: while in mode: album
2005-09-22 14:17:01.2403 from from 192.168.0.2
2005-09-22 14:17:01.2985 RandomPlay: recieved command newsong
2005-09-22 14:17:01.2986 RandomPlay: while in mode: album
2005-09-22 14:17:01.2986 from from 192.168.0.2
2005-09-22 14:17:01.2987 RandomPlay: new song detected, stripping off completed track
2005-09-22 14:17:01.2988 RandomPlay: 16 items remaining

max.spicer
2005-09-22, 06:51
I can't confirm this problem, but it doesn't exist in my new version of random mix. I've rewritten the way that remaining songs are calculated anyway. There's a patch in the dev forums, if that's any use to you. Otherwise, you'll just have to wait and see if my code gets used.

Max


I'd just like to throw in my observations of problems I've had when playing back random albums - Slimserver never seems to get past the 2nd album.

I've done a bit of debugging and it seems the random plugin is getting confused when the 2nd album is added to the playlist, and looses track of the number of tracks that remain.

In the log below, the first album played had 9 tracks, the 2nd had 8. When the 2nd album starts playing, RandomPlay seems to think there are 17 tracks remaining...

- Running 20 Sept 6.2b1 Nightly

2005-09-22 14:16:31.3721 Starting random selection for type: [album]
2005-09-22 14:16:31.3755 RandomPlay: Playing album: Turn of the Tides, 309
2005-09-22 14:16:31.4843 RandomPlay: starting callback for continuous random play.
2005-09-22 14:16:31.4844 RandomPlay: Playing continuous album mode with 9 items
2005-09-22 14:16:31.8586 RandomPlay: recieved command newsong
2005-09-22 14:16:31.8587 RandomPlay: while in mode: album
2005-09-22 14:16:31.8588 from from 192.168.0.2
2005-09-22 14:16:40.1555 RandomPlay: recieved command open
2005-09-22 14:16:40.1556 RandomPlay: while in mode: album
2005-09-22 14:16:40.1556 from from 192.168.0.2
2005-09-22 14:16:40.2774 RandomPlay: recieved command playlist
2005-09-22 14:16:40.2775 RandomPlay: while in mode: album
2005-09-22 14:16:40.2775 from from 192.168.0.2
2005-09-22 14:16:40.4107 RandomPlay: recieved command newsong
2005-09-22 14:16:40.4108 RandomPlay: while in mode: album
2005-09-22 14:16:40.4109 from from 192.168.0.2
2005-09-22 14:16:40.4109 RandomPlay: new song detected, stripping off completed track
2005-09-22 14:16:40.4110 RandomPlay: 8 items remaining
2005-09-22 14:16:41.7949 RandomPlay: recieved command open
2005-09-22 14:16:41.7950 RandomPlay: while in mode: album
2005-09-22 14:16:41.7951 from from 192.168.0.2
2005-09-22 14:16:41.9172 RandomPlay: recieved command playlist
2005-09-22 14:16:41.9173 RandomPlay: while in mode: album
2005-09-22 14:16:41.9174 from from 192.168.0.2
2005-09-22 14:16:42.0110 RandomPlay: recieved command newsong
2005-09-22 14:16:42.0111 RandomPlay: while in mode: album
2005-09-22 14:16:42.0111 from from 192.168.0.2
2005-09-22 14:16:42.0112 RandomPlay: new song detected, stripping off completed track
2005-09-22 14:16:42.0113 RandomPlay: 7 items remaining
...
2005-09-22 14:16:58.8566 RandomPlay: recieved command open
2005-09-22 14:16:58.8567 RandomPlay: while in mode: album
2005-09-22 14:16:58.8568 from from 192.168.0.2
2005-09-22 14:16:58.9650 RandomPlay: recieved command playlist
2005-09-22 14:16:58.9651 RandomPlay: while in mode: album
2005-09-22 14:16:58.9652 from from 192.168.0.2
2005-09-22 14:16:59.0912 RandomPlay: recieved command newsong
2005-09-22 14:16:59.0913 RandomPlay: while in mode: album
2005-09-22 14:16:59.0914 from from 192.168.0.2
2005-09-22 14:16:59.0914 RandomPlay: new song detected, stripping off completed track
2005-09-22 14:16:59.0876 Starting random selection for type: [album]
2005-09-22 14:16:59.0956 RandomPlay: Adding album: Chronologie, 109
2005-09-22 14:16:59.2653 RandomPlay: starting callback for continuous random play.
2005-09-22 14:16:59.2655 RandomPlay: Playing continuous album mode with 17 items
2005-09-22 14:17:01.0594 RandomPlay: recieved command open
2005-09-22 14:17:01.0595 RandomPlay: while in mode: album
2005-09-22 14:17:01.0596 from from 192.168.0.2
2005-09-22 14:17:01.2401 RandomPlay: recieved command playlist
2005-09-22 14:17:01.2402 RandomPlay: while in mode: album
2005-09-22 14:17:01.2403 from from 192.168.0.2
2005-09-22 14:17:01.2985 RandomPlay: recieved command newsong
2005-09-22 14:17:01.2986 RandomPlay: while in mode: album
2005-09-22 14:17:01.2986 from from 192.168.0.2
2005-09-22 14:17:01.2987 RandomPlay: new song detected, stripping off completed track
2005-09-22 14:17:01.2988 RandomPlay: 16 items remaining

max.spicer
2005-09-22, 07:32
From what I can see it looks as if random mix will _never_ remove old tracks. It reads the wrong preference so will never notice you telling it to remove them. I've fixed this in my version. You just need to change line 170 from:

if (Slim::Utils::Prefs::get('plugin_remove_old_tracks ')) {

to

if (Slim::Utils::Prefs::get('plugin_random_remove_old _tracks')) {


Got you, sorry. I'll have a look out for this today. Are you skipping forwards or backwards? I've noticed that the plugin adds new songs when you skip backwards, which it really shouldn't do.

Max

grov
2005-09-22, 07:41
I can't confirm this problem, but it doesn't exist in my new version of random mix. I've rewritten the way that remaining songs are calculated anyway. There's a patch in the dev forums, if that's any use to you. Otherwise, you'll just have to wait and see if my code gets used.

Max

I managed to apply the patch to my copy of SlimServer (after messing around with Cr vs Cr/Lf problems - !$@#$@ Windows). Just thought I'd let you know that it seems to have fixed my problem (made it to the 3rd album).

oreillymj
2005-09-22, 10:43
Max,

I'll need to wait for your changes to appear in a nightly for testing. I don't run CVS on my home machine.

I'll go and log a bug report about the problem where SB2 ignores the remainder of a playlist if you pause a track near the end.

Was hoping to get feedback telling me I wasn't the only person who could re-produce this issue.

max.spicer
2005-09-24, 12:59
My changes should be in today's nightly. Let me know how you get on.

Max



I'll need to wait for your changes to appear in a nightly for testing. I don't run CVS on my home machine.

oreillymj
2005-09-24, 14:18
Max,

I'll give your plugin a spin, but a bit of feedback based on this comment.

- plugin always maintains 9 (or as per preference) songs after current one if in track mode

One of the things I really like about Slimserver shuffle mode is that I can go back thru the playlist and replay a good song or just check out the name of something obscure in my collection. Other random play modes in MP3 players don't allow this as the last track played just disappears and hitting the back button just brings you to another random track.

I'm hoping the new Random mix mode doesn't delete the last played song.

What I'd recommend is that for a playlist of N songs, you wait until N/2 have played before dropping the oldest song of the top of the playlist and adding a new song to the end.

So in the case of a playlist of 10 items, the oldest only dissapears after the 5th song has finished playing.

Mick

max.spicer
2005-09-24, 14:25
The default behaviour for the plugin is to keep the entire history of played tracks. My comment refers to the number of tracks shown that will play after the current song. You can change a preference to tell it to delete tracks once they are played (some people like it this way), you can also specify how many "future" tracks will be played.

By the way, it's not my plugin, it's kdf's. He did all the hard work, I'm just making changes.

Max


Max,

I'll give your plugin a spin, but a bit of feedback based on this comment.

- plugin always maintains 9 (or as per preference) songs after current one if in track mode

One of the things I really like about Slimserver shuffle mode is that I can go back thru the playlist and replay a good song or just check out the name of something obscure in my collection. Other random play modes in MP3 players don't allow this as the last track played just disappears and hitting the back button just brings you to another random track.

I'm hoping the new Random mix mode doesn't delete the last played song.

What I'd recommend is that for a playlist of N songs, you wait until N/2 have played before dropping the oldest song of the top of the playlist and adding a new song to the end.

So in the case of a playlist of 10 items, the oldest only dissapears after the 5th song has finished playing.

Mick

kdf
2005-09-24, 18:13
On 24-Sep-05, at 2:25 PM, max.spicer wrote:
>
> By the way, it's not my plugin, it's kdf's. He did all the hard work,
> I'm just making changes.
>
Actually, credit goes to Dan on the one included with the server. The
web UI is his, and its much faster and cleaner than the one I did.
-k

oreillymj
2005-09-25, 15:10
Hi,

I've tested the new version of the plugin from the nightly of the 25th. Seems that the playlist now does maintain the correct number of items when I FFW and no longer starts to build a history. - I only tried the Random song Mix as that's the only mode I'm likely to use.

But ( and I suppose I want to have cake & eat it) the new behiour does mean that I can never check out the last song I played. I have Remove Played Songs enabled, but I would like to keep a short history of played songs.

i.e I have Random Mix set to 10 songs & Remove Songs enabled, I'd still like to be able to see the last 5 songs played and the next upcoming 5.

max.spicer
2005-09-26, 00:14
Why don't you just keep the history of played songs? The current song will always be selected on the list (if it's not, press now playing). You can scroll back five, and then stop if that's what you want. What's so bad about having more history? Although it's perfectly possible to implement your behaviour, I'm loathe to do it at the moment as I really don't see what you gain, and I've got some far more interesting features that I'd like to try adding as a priority.

Max


Hi,

I've tested the new version of the plugin from the nightly of the 25th. Seems that the playlist now does maintain the correct number of items when I FFW and no longer starts to build a history. - I only tried the Random song Mix as that's the only mode I'm likely to use.

But ( and I suppose I want to have cake & eat it) the new behiour does mean that I can never check out the last song I played. I have Remove Played Songs enabled, but I would like to keep a short history of played songs.

i.e I have Random Mix set to 10 songs & Remove Songs enabled, I'd still like to be able to see the last 5 songs played and the next upcoming 5.

oreillymj
2005-09-26, 09:33
I suppose I am being picky.
What I was hoping to gain by using the Ramdom Mix plugin was a lower memory overhead (by not keeping a 5000 song playlist in memory) , but I suppose having a few 100 after a number of hours playback isn't a big deal.

My suggestion just means you get the best of both worlds. A playlist you never have to worry about clearing. Just stick it on Random and it'll manage itself. Plus, the advantage of being able to flick back to see what that obscure song that just played was because songs hang around long enough in the playlist for you to review them.

max.spicer
2005-09-26, 09:39
Can I suggest you file an enhancement request for this? I can see your logic, but it's a low priority at the moment. The current "work out what to play and delete" logic is complicated enough already! As you say, the current behaviour is unlikely to cause a problem that's a big deal.

Max


I suppose I am being picky.
What I was hoping to gain by using the Ramdom Mix plugin was a lower memory overhead (by not keeping a 5000 song playlist in memory) , but I suppose having a few 100 after a number of hours playback isn't a big deal.

My suggestion just means you get the best of both worlds. A playlist you never have to worry about clearing. Just stick it on Random and it'll manage itself. Plus, the advantage of being able to flick back to see what that obscure song that just played was because songs hang around long enough in the playlist for you to review them.

oreillymj
2005-09-27, 10:58
No problem. I absolutely agree that what I'm looking for is probably an obscure use case.

I did have a look the perl code to see if it was feasible to make the changes myself rahter than hassling other, but perl is such a difficult language in terms of readability. Unless your programming in it daily, it can be quite hard to figure out what's going on.
I think I'd need every line of the plugin documented to figure out how to make my change.

max.spicer
2005-09-27, 13:00
It's actually reasonably well commented now. You only need about a week to be able to learn enough Perl and make substantial changes to the plugin. I've done just this in the last week, and it's been fun. ;-) To be fair though, I know other languages and, crucially I believe, bourne shell, sed and awk. From that background, Perl really makes a lot of sense. A copy of Learning Perl and Programming Perl (just the latter if it's a choice between the two) would also help a lot.

Max


No problem. I absolutely agree that what I'm looking for is probably an obscure use case.

I did have a look the perl code to see if it was feasible to make the changes myself rahter than hassling other, but perl is such a difficult language in terms of readability. Unless your programming in it daily, it can be quite hard to figure out what's going on.
I think I'd need every line of the plugin documented to figure out how to make my change.