Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- gmiplayer.txt.orig 2010-10-02 16:38:17.406250000 +0200
- +++ gmiplayer.txt 2010-10-02 16:36:27.125000000 +0200
- @@ -31,8 +31,9 @@
- play = function(e){
- e.preventDefault();
- var xbmc_host = GM_getValue("XBMC_HOST");
- - var i = new Image();
- - i.src = 'http://'+xbmc_host+'/xbmcCmds/xbmcHttp?command=PlayFile(plugin://video/IPlayer/?pid='+getpid()+')';
- + var i = new XMLHttpRequest();
- + i.open('POST', 'http://'+xbmc_host+'/jsonrpc', false);
- + i.send('{ "jsonrpc": "2.0", "method": "XBMC.Play", "params": { "file": "plugin://plugin.video.iplayer/?pid='+getpid()+'" }, "id": "1" }');
- }
- init = function(){
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement