diff --git a/.gitignore b/.gitignore index d2aa50c..0f77ee7 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -/videos \ No newline at end of file +/videos/bigbuck.mp4 \ No newline at end of file diff --git a/settings.json b/settings.json index 97394f1..328388e 100644 --- a/settings.json +++ b/settings.json @@ -1,6 +1,6 @@ { "server_ip": "192.168.68.118", "server_port": 3000, - "video_path": "videos/bigbuck.mp4", + "video_path": "videos/shrek.mp4", "password": "" -} \ No newline at end of file +} diff --git a/src/index.js b/src/index.js index 5044f59..fab080a 100644 --- a/src/index.js +++ b/src/index.js @@ -1,6 +1,3 @@ -// https://www.npmjs.com/package/ws#api-docs -// https://developer.mozilla.org/en-US/docs/Web/API/WebSocket - const fs = require("fs"); const express = require('express'); const bodyParser = require('body-parser'); @@ -91,7 +88,6 @@ app.get("/", function (req, res) { app.post("/login", function (req, res) { const data = req.body; - console.log(data); if(!data) res.sendStatus(400); diff --git a/videos/shrek.mp4 b/videos/shrek.mp4 new file mode 100644 index 0000000..47a5bc2 Binary files /dev/null and b/videos/shrek.mp4 differ