2013-12-23, 21:19
I have a play button
I cant get it to pause because it will pause and then play. I noticed this for all my other buttons as well. I have a console.log() line to test it and I see it being output twice.
http://pastie.org/8571997#308 my line 49, is supposed to act the same as 309
I think the browser thinks there are 2 files of MediaLibrary.js as on the console output for my stop button for example it shows:
stop MediaLibrary.js?0.5137871876358986:65
stop MediaLibrary.js:65
update: I had 2 instances of it ^
Code:
$( "#play-button" ).click(function() {
console.log("play/pause");
jQuery.post(JSON_RPC + '?SendRemoteKey', '{"jsonrpc": "2.0", "method": "Player.PlayPause", "params": { "playerid": 1 }, "id": 1}', function(data){$('#spinner').hide();}, 'json');
return;
});
I cant get it to pause because it will pause and then play. I noticed this for all my other buttons as well. I have a console.log() line to test it and I see it being output twice.
http://pastie.org/8571997#308 my line 49, is supposed to act the same as 309
I think the browser thinks there are 2 files of MediaLibrary.js as on the console output for my stop button for example it shows:
stop MediaLibrary.js?0.5137871876358986:65
stop MediaLibrary.js:65
update: I had 2 instances of it ^