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:
parent
7d5bac659c
commit
5b96d6d8ab
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
/videos
|
||||
/videos/bigbuck.mp4
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"server_ip": "192.168.68.118",
|
||||
"server_port": 3000,
|
||||
"video_path": "videos/bigbuck.mp4",
|
||||
"video_path": "videos/shrek.mp4",
|
||||
"password": ""
|
||||
}
|
||||
}
|
||||
|
@ -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
BIN
videos/shrek.mp4
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user