I am working on a VLC remote and I am able to send commands to the player via this function:
Code: Select all
function passCommands(command)
{
var http = new XMLHttpRequest()
var url = "http://" + ip + ":" + port + "/requests/status.xml?command=" + command;
http.open("POST", url, true);
// Send the proper header information along with the request
http.setRequestHeader("Authorization", "Basic " + Qt.btoa(username + ":" + password));
http.send();
}
Thank you