From d5e22a90a6d3c6ff105df69f1f3cfbfe563e1eb6 Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Tue, 20 Jun 2017 13:01:53 +0200 Subject: [PATCH] more debugging options --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index f3cb15f..ca84b74 100755 --- a/index.js +++ b/index.js @@ -11,6 +11,7 @@ var activeFile = undefined; // DEBUG if(DEBUG){ //player.loadFile(__dirname + "/files/testv.mp4", ()=>{ +console.log("DEBUG"); activeFile = "testv.mp4"; player.loadFile(__dirname + "/files/" + activeFile, ()=>{ player.play(); @@ -20,8 +21,9 @@ player.loadFile(__dirname + "/files/" + activeFile, ()=>{ // END DEBUG io.on("connection", (socket)=>{ - //console.log("client connected:", socket.client.id); + console.log("client connected:", socket.client.id); socket.on("play", (data)=>{ + console.log("Play", data); activeFile = data.file; player.loadFile(__dirname + "/files/" + data.file, ()=>{ player.play(()=>{