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
|
// DEBUG
|
||||||
if(DEBUG){
|
if(DEBUG){
|
||||||
//player.loadFile(__dirname + "/files/testv.mp4", ()=>{
|
//player.loadFile(__dirname + "/files/testv.mp4", ()=>{
|
||||||
|
console.log("DEBUG");
|
||||||
activeFile = "testv.mp4";
|
activeFile = "testv.mp4";
|
||||||
player.loadFile(__dirname + "/files/" + activeFile, ()=>{
|
player.loadFile(__dirname + "/files/" + activeFile, ()=>{
|
||||||
player.play();
|
player.play();
|
||||||
@ -20,8 +21,9 @@ player.loadFile(__dirname + "/files/" + activeFile, ()=>{
|
|||||||
// END DEBUG
|
// END DEBUG
|
||||||
|
|
||||||
io.on("connection", (socket)=>{
|
io.on("connection", (socket)=>{
|
||||||
//console.log("client connected:", socket.client.id);
|
console.log("client connected:", socket.client.id);
|
||||||
socket.on("play", (data)=>{
|
socket.on("play", (data)=>{
|
||||||
|
console.log("Play", data);
|
||||||
activeFile = data.file;
|
activeFile = data.file;
|
||||||
player.loadFile(__dirname + "/files/" + data.file, ()=>{
|
player.loadFile(__dirname + "/files/" + data.file, ()=>{
|
||||||
player.play(()=>{
|
player.play(()=>{
|
||||||
|
Loading…
Reference in New Issue
Block a user