Added a sample video and edited .gitignore

Added videos/shrek.mp4
Removed comments and prints in src/index.js
Modified .gitignore
This commit is contained in:
ShakedAp 2023-06-26 19:21:18 +03:00
parent 7d5bac659c
commit 5b96d6d8ab
4 changed files with 3 additions and 7 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
/videos
/videos/bigbuck.mp4

View File

@ -1,6 +1,6 @@
{
"server_ip": "192.168.68.118",
"server_port": 3000,
"video_path": "videos/bigbuck.mp4",
"video_path": "videos/shrek.mp4",
"password": ""
}
}

View File

@ -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);

BIN
videos/shrek.mp4 Normal file

Binary file not shown.