diff options
author | montellese <montellese@xbmc.org> | 2012-10-04 21:11:55 +0200 |
---|---|---|
committer | montellese <montellese@xbmc.org> | 2012-10-04 21:11:55 +0200 |
commit | 63afc98add799d3508d8230fa823c2c45e856926 (patch) | |
tree | c8590ea5fbaaa8a1d3fa1542e02324a6e0050d52 /addons/webinterface.default | |
parent | c7158dd1eb28f2d85aa955d2b34cc6b6b62acd6d (diff) |
[webinterface.default] fix Player.Go(Previous|Next|To) after changes in JSON-RPC
Diffstat (limited to 'addons/webinterface.default')
-rw-r--r-- | addons/webinterface.default/addon.xml | 2 | ||||
-rwxr-xr-x | addons/webinterface.default/js/MediaLibrary.js | 4 | ||||
-rwxr-xr-x | addons/webinterface.default/js/NowPlayingManager.js | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/addons/webinterface.default/addon.xml b/addons/webinterface.default/addon.xml index c6cd9ecd06..beed59a9ee 100644 --- a/addons/webinterface.default/addon.xml +++ b/addons/webinterface.default/addon.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <addon id="webinterface.default" - version="2.0.3" + version="2.0.4" name="Default" provider-name="Team XBMC"> <requires> diff --git a/addons/webinterface.default/js/MediaLibrary.js b/addons/webinterface.default/js/MediaLibrary.js index e76120c155..3a5271fcf8 100755 --- a/addons/webinterface.default/js/MediaLibrary.js +++ b/addons/webinterface.default/js/MediaLibrary.js @@ -370,7 +370,7 @@ MediaLibrary.prototype = { type: 'POST', contentType: 'application/json', url: JSON_RPC + '?SendRemoteKey', - data: '{"jsonrpc": "2.0", "method": "Player.GoNext", "params": { "playerid": ' + player + ' }, "id": 1}', + data: '{"jsonrpc": "2.0", "method": "Player.GoTo", "params": { "playerid": ' + player + ', "to": "next" }, "id": 1}', success: jQuery.proxy(function(data) { $('#spinner').hide(); }, this), @@ -381,7 +381,7 @@ MediaLibrary.prototype = { type: 'POST', contentType: 'application/json', url: JSON_RPC + '?SendRemoteKey', - data: '{"jsonrpc": "2.0", "method": "Player.GoPrevious", "params": { "playerid": ' + player + ' }, "id": 1}', + data: '{"jsonrpc": "2.0", "method": "Player.GoTo", "params": { "playerid": ' + player + ', "to": "previous" }, "id": 1}', success: jQuery.proxy(function(data) { $('#spinner').hide(); }, this), diff --git a/addons/webinterface.default/js/NowPlayingManager.js b/addons/webinterface.default/js/NowPlayingManager.js index f461545e51..d32d657d0a 100755 --- a/addons/webinterface.default/js/NowPlayingManager.js +++ b/addons/webinterface.default/js/NowPlayingManager.js @@ -161,7 +161,7 @@ NowPlayingManager.prototype = { type: 'POST', contentType: 'application/json', url: JSON_RPC + '?SkipNext', - data: '{"jsonrpc": "2.0", "method": "Player.GoNext", "params": { "playerid": ' + this.activePlayerId + ' }, "id": 1}', + data: '{"jsonrpc": "2.0", "method": "Player.GoTo", "params": { "playerid": ' + this.activePlayerId + ', "to": "next" }, "id": 1}', success: jQuery.proxy(function(data) { if (data && data.result == 'OK') { //this.updateAudioPlaylist(true); @@ -176,7 +176,7 @@ NowPlayingManager.prototype = { type: 'POST', contentType: 'application/json', url: JSON_RPC + '?SkipPrevious', - data: '{"jsonrpc": "2.0", "method": "Player.GoPrevious", "params": { "playerid": ' + this.activePlayerId + ' }, "id": 1}', + data: '{"jsonrpc": "2.0", "method": "Player.GoTo", "params": { "playerid": ' + this.activePlayerId + ', "to": "previous" }, "id": 1}', success: jQuery.proxy(function(data) { if (data && data.result == 'OK') { //this.updateAudioPlaylist(true); @@ -253,7 +253,7 @@ NowPlayingManager.prototype = { type: 'POST', contentType: 'application/json', url: JSON_RPC + '?PlaylistItemPlay', - data: '{"jsonrpc": "2.0", "method": "Player.GoTo", "params": { "playerid": ' + this.activePlayerId + ', "item": ' + sequenceId + '}, "id": 1}', + data: '{"jsonrpc": "2.0", "method": "Player.GoTo", "params": { "playerid": ' + this.activePlayerId + ', "to": ' + sequenceId + '}, "id": 1}', success: jQuery.proxy(function(data) { }, this), |