i added initial support for music party mode. it requires a music database. enable it from the "party mode" button found in the library window.
it's integrated into the music now playing window. when party mode is enabled, the shuffle, random, and repeat buttons in the now playing window are disabled.
when enabled, xbmc will ensure the now playing window has at least 10 songs in the playlist at all times, by randomly picking songs out of the database. the currently playing song is always at the top of the list. when its finished, its removed from the list, a new song is added, and the top song plays.
from within the now playing window, you can select another song thats already in the queue. this song will start playing and get moved to the top of the list. the previously playing song will be removed.
from the files and library window, you can select/play a song and it will become the currnetly playing song. (autoplay next item is effectively disabled while party mode is enabled.)
play on a folder or playlist is currently ignored during party mode. queue, however, works as normal. the items are added to the end of the playlist.
if something switches or clears the playlist, party mode is disabled. examples: you start a movie, you initiate playback from the web interface, from an http api command, from the internal command, or from python.
there are going to be bugs! there's alot of interaction with other parts of xbmc which i likely missed. start posting the bugs here. please do not post feature requests yet. the system needs to be stabalised first.
kraqh3d
Retired Developer Joined: Dec 2003 Reputation: 4 Location: New York City, USA |
2006-02-19 19:01
Post: #1
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. |
| find quote |
ceomr
Member Posts: 75 Joined: Mar 2004 Reputation: 0 |
2006-02-20 00:00
Post: #2
great new feature..
a few things to consider: i think the playlist "now playing window" should be opened after party mode is enabled a party mode button should be added to mymusicsongs window @ bugs.. disable party mode... so far cheers ceomr |
| find quote |
Loto_Bak
Fan Posts: 478 Joined: Sep 2004 Reputation: 0 |
2006-02-20 08:50
Post: #3
comoer : mymusicsongs is the file view. as stated party mode uses the database hense only in mymusicnav.
ahhh very nice work kraq. ive had a couple hard lockups when i first tried it. i have a log of only the 2nd one. i 'selected' a song from the library with party mode on. i then entered the playlist window and watch the song roll over to the next... until it locked hard just as was changing. the files involved playback fine when tried again. it only happened twise and hasnt occured since. log follows Quote:19-02-2006 22:15:59 debug playback has started dont know if that will help you much. besides these two isolated crashes it seems to be working fantastic. a few minor interface quirks but ill leave thoes for another day tanks again :kickass: loto |
| find quote |
kraqh3d
Retired Developer Joined: Dec 2003 Reputation: 4 Location: New York City, USA |
2006-02-20 15:54
Post: #4
@coemr
it could open up the now playing window when first enabled. thats easy. i'll throw that in. the reason i didnt put the button in files view is because its library view dependant. and what you mean by "@ bugs.. disable party mode..."? you can certainly disable it, but you need to do it from the button library view. i'll add a context menu option of "cancel party mode" to the now playing window context menu. that's simple enough. @loto you've experienced this lock up twice out of how many times? it looks like something could be wrong with the stink finger file, but you said it plays fine. its as if the file got to the top of the playlist, and it kept trying to repeatedly play it but couldnt. in this case, you should get a message that the item is unplayable. an unplayable song should be reaped from the list after it errors and party mode moves onto the next song. i've noticed some quirks with the paplayer related to how it loads the next song outside of the playlist player and then just tells the playlist player to move ahead. it could be related. please double check that this file plays ok outside of party mode. queue up some files, and put this one in the middle. and definately explain these interface quirks you've found. i'm interested in those to. ** edit ** i just threw in those two suggestions. now, when party mode is enabled, xbmc switches to the now playing window, and you can watch it get populated. there's also a "cancel party mode" option in the context menu so you can turn it off without going back to the library window. i also added some code to disable the "move" options in the now playing context menu when appropiate since party mode moves stuff on its own. Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. |
| find quote |
DonJ
Team-XBMC Member Posts: 503 Joined: May 2005 Reputation: 5 |
2006-02-20 17:52
Post: #5
is there a way to use the party mode with videos? i'd like to use it for mvids...
i guess the answer is no though as it depends on the music library Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. |
| find quote |
reddington
Junior Member Posts: 13 Joined: Jan 2006 Reputation: 0 |
2006-02-20 18:49
Post: #6
wow this is great!! i was just reading some of the other party mode threads yesterday and became really interested in this.
i'm going to get a new build and start contributing to this thread... thanks for the work kraqh3d. |
| find quote |
Loto_Bak
Fan Posts: 478 Joined: Sep 2004 Reputation: 0 |
2006-02-20 21:18
Post: #7
kraq, i'm absolutly positive the file plays properly when added to a queue. it has worked 20+ times since.
regarding little quirks, they were feature requests is why i omitted them. could 'enqueue' add items in front of the randomly populated items? i think this is more usable because users would want to listen too their selectedf songs before all the random songs. the ability to specify the 'source' of the randomly selected songs is needed as well. otherwise songs like limp bizkit - stink finger come up being able to use playlists, genres, or specific artists as sources would be neat. perhaps a context menu item 'party this directory'thanks loto |
| find quote |
chadoe
Team-XBMC Developer Joined: Nov 2003 Reputation: 0 Location: Home |
2006-02-20 22:54
Post: #8
i get this error sometimes when starting party mode:
Quote:20-02-2006 20:35:16 info party mode: adding random song at 3:[<a path to mp3 file>]then there are 4 songs in the list and it doesn't remove items when played or add new items. Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. |
| find quote |
kraqh3d
Retired Developer Joined: Dec 2003 Reputation: 4 Location: New York City, USA |
2006-02-20 23:52
Post: #9
@donj: no, music party mode has no video support.
@loto: no feature requests yet, but to answer you: Quote:could 'enqueue' add items in front of the randomly populated items? i think this is more usable because users would want to listen too their selectedf songs before all the random songs.eventually. right now there is no way to easily push more than one song to the top of the list, nor is there a way to distinguish between user added songs and randomly added songs. so for now, queue puts items at the bottom as it does normally, play on a folder/playlist is completely ignored, and select or play on a file makes that file the current song. Quote:the ability to specify the 'source' of the randomly selected songs is needed as well. otherwise songs like limp bizkit - stink finger come up. being able to use playlists, genres, or specific artists as sources would be neat. perhaps a context menu item 'party this directory'unfortunately, this requires a database update. all songs will be available by default with a context menu option to both enable or disable a file/folder. and i dont see playlists ever being used as random sources as they are still outside of the database. @charly: when did you last sync with cvs? there was a bug that existed in cvs for a short while yesterday which could cause this. that error is supposed to only be generated when getrandomsong fails. since i dont see the accompanying getrandomsong failed error message, it looks like you may have synced when the bug existed. and the reason why no more songs are added, and no songs are removed is because it aborted. if party mode encounters any errors, it disables itself to prevent it from getting stuck in a spiraling loop of errors. Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. |
| find quote |
pike
Project Manager Joined: Sep 2003 Reputation: 28 Location: Sweden |
2006-02-21 04:28
Post: #10
same tune shouldnt enqueue 'auto' more than once in current 10 playing, i had this happen more than once with a selection of 38 tunes
ex: (with 2 tunes queued 2 times)
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. ![]() |
| find quote |

![[Image: loafamotive.gif]](http://imagegen.last.fm/tnd/tracks/loafamotive.gif)
being able to use playlists, genres, or specific artists as sources would be neat. perhaps a context menu item 'party this directory'
![[Image: badge.gif]](http://www.ohloh.net/projects/9132/badge.gif)
Search
Help