0.9.46.0 - Player Mac (Player ID) is now automatic, so the field is gone. (You can still specify a MAC in the command if you want, but there is no need to.
Coming up with a way to manage the unique player ID's turned out to be a little vexing. It is easy enough just to default to the client computer's MAC address, but that won't work when you have multiple users on the same computer. I needed this to work with multiple users logged into the computer, each with Squeezelite-X running. So I had to come with a way to substitute unique Player IDs and Player Names if you are about to start with an ID or Name that is already in user by another user. Anyway, got it all work, and this is how it works. Squeezelite-X will attempt to use the client computer's network card Mac address as the player ID. Before starting squeezelite-win.exe it will first check with the server to see if any players are already connected using that Player ID. If so, it will substitute an alternate Player ID made up of the 1st three octets of the client computer's MAC and the last three octets chosen randomly (but checked for uniqueness on the LMS server). Also, if you choose to manually define the Player ID using the -m switch, then it will do the same thing, that is, it will try to use it, but if it is already being used, it will make a substitution. So, starting two instances with the same PlayerID is prevented. Similarly, Squeezelite-X will attempt to use the Player Name you define. But if it is already in use, then it will substitute a new name, by appending a number (e.g. (2), (3), etc) after it. If you have multiple users on a computer, I recommend each give their player a unique name like (Office-Greg and Office-Monica). Otherwise, if two users define the same name for themselves, you'll end up with something like (Office and Office (2)) in the order they start Squeezelite-X. I still have one issue with multiple instances on the same computer - Media Keys. Right now, all instances running on the same computer will respond to and execute Media Keys. I have not figured out a smart way to control this yet, so I added an option to turn media keys Off. So if you have multiple instances running on the same computer you should turn media keys Off for all but one. R Greg Dawson ------------------------------------------------------------------------ rgdawson's Profile: http://forums.slimdevices.com/member.php?userid=65236 View this thread: http://forums.slimdevices.com/showthread.php?t=107540 _______________________________________________ diy mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/diy
