Added Helper.log and error message on connection failure

This commit is contained in:
Kasper Rynning-Tønnesen
2016-09-01 20:06:05 +02:00
parent bded7f726e
commit 5bfdd25962
17 changed files with 205 additions and 189 deletions

View File

@@ -29,7 +29,7 @@ var Hostcontroller = {
if(enabled){
if(arr[0] == "volume"){
$("#volume").slider("value", arr[1]);
Player.ytplayer.setVolume(arr[1]);
Player.player.setVolume(arr[1]);
localStorage.setItem("volume", arr[1]);
Playercontrols.choose_button(arr[1], false);
}else if(arr[0] == "channel"){
@@ -48,9 +48,9 @@ var Hostcontroller = {
window.history.pushState("object or string", "Title", "/"+chan.toLowerCase());
}else if(arr[0] == "pause")
Player.ytplayer.pauseVideo();
Player.player.pauseVideo();
else if(arr[0] == "play")
Player.ytplayer.playVideo();
Player.player.playVideo();
else if(arr[0] == "skip")
List.skip();
}