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(()=>{