2011-09-22, 12:05
grywnn Wrote:Like Tolriq i'm using infolabels as a convenient way to quickly get all info about the currently playing item.We are planning on adding either a method to the Player namespace or a property to Player.GetProperties to retrieve the currently playing item without having to call Playlist.GetItems. You will still have to call Player.GetActivePlayers() but after that you'll only need one call.
This is now overly complicated imho because you first need a Player.getActivePlayers, feed the result into Player.getProperties, and feed the playlist id in playlist.getItems. Three requests that can't be batched since they rely on the output of the previous one (or am i missing something here?)
A convenience method would be nice
What you need to consider is that (partly already now and) in the future there may be multiple items playing at the same time. You can e.g. play a slideshow and a music playlist at the same time. That's why we provide Player.GetActivePlayers(). In such a case the InfoLabels won't suffice to provide you with all the information.
grywnn Wrote:And, @Montellese: Any more big changes in the near future? Is it safe to update clients yet?I think the biggest part is done. I'll probably add some new properties here and there and like I said some way to easier retrieve the currently playing item(s).
grywnn Wrote:BTW love working with the new playlist namespace!!Glad to hear that