Updated look of remote on mobile, and fixed changing channel remotely

This commit is contained in:
Kasper Rynning-Tønnesen
2016-04-28 17:07:01 +02:00
parent be08330a1a
commit bce84ff56b
6 changed files with 26 additions and 9 deletions

View File

@@ -24,6 +24,7 @@ var Hostcontroller = {
began = true;
socket.on(id, function(arr)
{
if(enabled){
if(arr[0] == "volume"){
$("#volume").slider("value", arr[1]);
@@ -31,6 +32,7 @@ var Hostcontroller = {
localStorage.setItem("volume", arr[1]);
Playercontrols.choose_button(arr[1], false);
}else if(arr[0] == "channel"){
console.log("changing channel");
socket.emit("change_channel");
Admin.beginning = true;