xbmc/xbmc — pull request #1507 by Montellese (2012-09-30 09:36:57+00:00)
Title: JSON-RPC: cleanup methods in Player namespace

These commits contain some cleanup in the Player namespace. The following changes are included:
* merge Player.Move(Left|Right|Up|Down) into Player.Move which takes a "direction" parameter which can be "left", "right", "up" or "down"
* merge Player.Zoom(In|Out) into Player.Zoom which takes a "zoom" parameter which can be "in", "out" or any integer between 1 and 10 (zoom level)
* merge Player.(Un)Shuffle into Player.SetShuffle with a "shuffle" parameter which can be true, false or "toggle" so this adds the toggle functionality which wasn't possible up until now
* rename Player.Repeat to Player.SetRepeat to match the naming convention and renames the "state" parameter to "repeat"
* merge Player.Go(Previous|Next|To) into Player.GoTo with a "to" parameter (not "position") which can be "previous", "next" or any integer number describing a position in the playlist

Obviously these changes break backwards compatibility (which has already happend a while ago for Frodo anyway) but IMO provides a cleaner interface. I made every change in a single commit so it would be easy to drop one of the changes if deemed unnecessary/unfit.