You should use the CLI interface towards the Dynamic Playlist plugin, something like:
Code: -------------------- $client->execute(['dynamicplaylist', 'playlist', 'play', 'sqlplaylist_XXX']); -------------------- Where 'sqlplaylist_XXX' is the id of the playlist. To see which id a specific playlist have you: 1. Connect to the CLI interface: telnet localhost 9090 2. Enter: dynamicplaylist playlists Look for your playlist, basically XXX in the sample above is replaced with the playlist name you see in the user interface. In the next release of SQLPlayList the id will probably be changed so the filename of the .sql* file is used instead. If the name contains a space or some other unusual character today you will have to replace the space with something like %20, but you will see the exact name in the result form the "dynamicplaylist playlists" command after playlistid%3A for the playlist you are looking for. 3. Exit CLI interface by enter: exit A complete integration would call the "dynamicplaylist playlists" command and show the available playlists in a listbox, let the user select which playlist he likes to connect to the alarm, and when the alarm is trigged it starts to play the selected playlist with the "dynamicplaylist playlist play XXX" command. -- erland Erland Isaksson 'My homepage' (http://erland.homeip.net) 'My download page' (http://erland.homeip.net/download) (Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse, Custom Scan, Custom Skip, Multi Library and RandomPlayList plugins' (http://wiki.erland.homeip.net/index.php/Category:SlimServer)) ------------------------------------------------------------------------ erland's Profile: http://forums.slimdevices.com/member.php?userid=3124 View this thread: http://forums.slimdevices.com/showthread.php?t=34668 _______________________________________________ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/plugins