more debugging options
This commit is contained in:
parent
820ce306cc
commit
d5e22a90a6
4
index.js
4
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(()=>{
|
||||
|
Loading…
Reference in New Issue
Block a user