v18 Leia Play/pause toggle example?
#6
You can't just type a POST request in the browser. Well, you can, but not the address bar. You can use the console to write JavaScript that sends a POST request:

javascript:

var xhttp = new XMLHttpRequest();

xhttp.open("POST", "http://<yourKodiIP>/jsonrpc", true);
xhttp.setRequestHeader("Content-type", "application/json");
xhttp.send("{\"jsonrpc\":\"2.0\",\"method\":\"Player.PlayPause\",\"params\":{\"playerid\":1},\"id\":1}");

From what I understand, this is probably not possible in iRule though.
Reply


Messages In This Thread
Leia Play/pause toggle example? - by houser - 2018-12-18, 20:33
RE: Leia Play/pause toggle example? - by MrTarantula - 2018-12-27, 21:51
Logout Mark Read Team Forum Stats Members Help
Leia Play/pause toggle example?0