diff options
author | topfs2 <topfs2@svn> | 2010-05-06 23:15:37 +0000 |
---|---|---|
committer | topfs2 <topfs2@svn> | 2010-05-06 23:15:37 +0000 |
commit | 2481de7360d3a7e1de25d1e4226344e1ee327393 (patch) | |
tree | f47b763f71feb0a102a7200d5a5d8033cffadc8e | |
parent | e19c09c040d66c117d3a0328e353262af18a7105 (diff) |
Fixed webinterface to work with the altered GetActivePlayers result
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@29862 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
-rw-r--r-- | web/poc_jsonrpc/nowplaying.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/web/poc_jsonrpc/nowplaying.html b/web/poc_jsonrpc/nowplaying.html index 2eb9eb50a6..9c3931306c 100644 --- a/web/poc_jsonrpc/nowplaying.html +++ b/web/poc_jsonrpc/nowplaying.html @@ -44,8 +44,10 @@ http_request.open( "POST", "jsonrpc", false ); http_request.send('{"jsonrpc": "2.0", "method": "Player.GetActivePlayers", "id": 1}'); var players = JSON.parse(http_request.responseText)["result"]; -if (players.length > 0) { - var player = players[0]; +if (players["video"] || players["audio"]) { + var player = "Video"; + if (players["audio"]) + player = "Audio"; http_request = new XMLHttpRequest(); http_request.open( "POST", "jsonrpc", false ); |