Volume control from the web interface.

This commit is contained in:
Jim Driessen
2017-01-30 16:39:25 +01:00
parent e0ac7cf4ce
commit a5c2331bcf
9 changed files with 97 additions and 6 deletions

View File

@ -73,6 +73,14 @@ $(function () {
getSongs();
});
$('#volume-down').click(function(){
$.post('/api/volumedown', {csrfmiddlewaretoken: csrf_token});
});
$('#volume-up').click(function(){
$.post('/api/volumeup', {csrfmiddlewaretoken: csrf_token});
});
getSongs();
});