jsonrpc: add Player.GetItem to retrieve the current item in a player
authormontellese <montellese@xbmc.org>
Sun, 2 Oct 2011 10:39:52 +0000 (12:39 +0200)
committermontellese <montellese@xbmc.org>
Wed, 5 Oct 2011 20:11:26 +0000 (22:11 +0200)
commit288f4967d954769282fcb8e7191ea7a8d44f6baf
tree77f7841380076b44297452ea4c67bc08b4dc19f2
parent43c12938971bae980a3a20f005cff5ee7f6ef55f
jsonrpc: add Player.GetItem to retrieve the current item in a player

This fixes the problem when items are played using Player.Open or from a BuiltIn method (like it is done with recently added). In that case the played item does not appear in the VideoPlaylist and therefore it is impossible to retrieve information about it.
xbmc/interfaces/json-rpc/FileItemHandler.cpp
xbmc/interfaces/json-rpc/JSONServiceDescription.cpp
xbmc/interfaces/json-rpc/PlayerOperations.cpp
xbmc/interfaces/json-rpc/PlayerOperations.h
xbmc/interfaces/json-rpc/ServiceDescription.h
xbmc/interfaces/json-rpc/methods.json
xbmc/interfaces/json-rpc/types.json