Hey guys
I noticed some demand for a digital jukebox mode, and while this isn't that exactly, its one step closer. It is my first time fiddling with MP - I decided to do so while frodo is away so the sources don't change much while I'm programming...
Anyway, I delved into the MP source code and added some code here and there to the GUIMusic and MusicDatabase projects. The new party shuffle functionality (as seen in iTunes) is implemented in the playlists screen. Basically what it is is that it will randomly pick 12 songs to play, and when one finishes, it will remove it and pick another, maintaining at least 12 songs in the playlist. In other words, MP plays random songs and shows you the next 11 songs it intends to play. You can delete these and MP will pick new ones. You can also, as before, continue adding songs to the playlist and MP will play them. After the added songs are played, it returns to randomly picking songs.
To activate party shuffle, simply press the Party Shuffle button at the bottom of the playlist screen. To turn it off, simply press it again.
Once you press it, it will load up 12 random songs and play them. To get rid of a song, select it and press Y (or whatever your delete playlist item key is). To select the next song to play in the list, simply select the song and click on it. All the songs in between the song currently playing and the selected song will be removed from the playlist and random songs will be added if required to fill up the list. You cannot delete the currently playing song. Press Next if you want to stop playing the current song. The Clear button clears the playlist and fill it with 12 random songs. If a song is playing, it will not remove that song. Stop the song first before clearing the playlist if you wish to do so. The previous button is permanently disabled as once a song is played, it is removed from the playlist in party shuffle mode.
To install party shuffle, because it is a patch and not a plugin, you will need to overwrite a few MP files. I have developed this using the latest source code (0.0.0.12). To install, download the file and extract the files to the following locations:
MusicDatabase.dll to your MediaPortal folder
GUIMusic.dll to MediaPortal\plugins\windows
mymusicplaylist.xml to MediaPortal\skin\mce
strings.xml to MediaPortal\language\English
In all cases, it should be overwriting a file. If it does not, then you are not putting it in the right folder.
This patch only works with the mce skin and with the English language (until someone adds it into the other skins and languages).
It is basically finished from my point of view, and all bugs that I have found have been resolved.
The source code is included in the download as well. You do not need to touch it unless you want to view the source code (it is the two .cs files) (be easy on me when you see it though, I'm not a C# programmer, more a VB.NET person ;-) ).
Download it at: Link removed - party shuffle in MP 0.0.0.13
Anyway, I think this is all I have to say, hope you guys can get it working! Post any suggestions/feedback/bugs and anything else here...
Sam
EDIT: updated it with new version 28/10/2004
EDIT: updated it with new version 29/10/2004. See post below.
EDIT: updated it with new version 30/10/2004. See post below.
EDIT: removed link to patch - party shuffle in MP 0.0.0.13
I noticed some demand for a digital jukebox mode, and while this isn't that exactly, its one step closer. It is my first time fiddling with MP - I decided to do so while frodo is away so the sources don't change much while I'm programming...
Anyway, I delved into the MP source code and added some code here and there to the GUIMusic and MusicDatabase projects. The new party shuffle functionality (as seen in iTunes) is implemented in the playlists screen. Basically what it is is that it will randomly pick 12 songs to play, and when one finishes, it will remove it and pick another, maintaining at least 12 songs in the playlist. In other words, MP plays random songs and shows you the next 11 songs it intends to play. You can delete these and MP will pick new ones. You can also, as before, continue adding songs to the playlist and MP will play them. After the added songs are played, it returns to randomly picking songs.
To activate party shuffle, simply press the Party Shuffle button at the bottom of the playlist screen. To turn it off, simply press it again.
Once you press it, it will load up 12 random songs and play them. To get rid of a song, select it and press Y (or whatever your delete playlist item key is). To select the next song to play in the list, simply select the song and click on it. All the songs in between the song currently playing and the selected song will be removed from the playlist and random songs will be added if required to fill up the list. You cannot delete the currently playing song. Press Next if you want to stop playing the current song. The Clear button clears the playlist and fill it with 12 random songs. If a song is playing, it will not remove that song. Stop the song first before clearing the playlist if you wish to do so. The previous button is permanently disabled as once a song is played, it is removed from the playlist in party shuffle mode.
To install party shuffle, because it is a patch and not a plugin, you will need to overwrite a few MP files. I have developed this using the latest source code (0.0.0.12). To install, download the file and extract the files to the following locations:
MusicDatabase.dll to your MediaPortal folder
GUIMusic.dll to MediaPortal\plugins\windows
mymusicplaylist.xml to MediaPortal\skin\mce
strings.xml to MediaPortal\language\English
In all cases, it should be overwriting a file. If it does not, then you are not putting it in the right folder.
This patch only works with the mce skin and with the English language (until someone adds it into the other skins and languages).
It is basically finished from my point of view, and all bugs that I have found have been resolved.
The source code is included in the download as well. You do not need to touch it unless you want to view the source code (it is the two .cs files) (be easy on me when you see it though, I'm not a C# programmer, more a VB.NET person ;-) ).
Download it at: Link removed - party shuffle in MP 0.0.0.13
Anyway, I think this is all I have to say, hope you guys can get it working! Post any suggestions/feedback/bugs and anything else here...
Sam
EDIT: updated it with new version 28/10/2004
EDIT: updated it with new version 29/10/2004. See post below.
EDIT: updated it with new version 30/10/2004. See post below.
EDIT: removed link to patch - party shuffle in MP 0.0.0.13