Compare commits
3 Commits
1f0aa26594
...
orb/22
| Author | SHA1 | Date | |
|---|---|---|---|
|
f518f86543
|
|||
|
302113baee
|
|||
|
b48245e870
|
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"server_ip": "0.0.0.0",
|
||||
"server_port": 8080,
|
||||
"video_path": "videos/Orb-21.mp4",
|
||||
"subtitles_path": "videos/Orb-21.vtt",
|
||||
"bg_path": "videos/bg-20.png",
|
||||
"video_path": "videos/Orb-22.mp4",
|
||||
"subtitles_path": "videos/Orb-22.vtt",
|
||||
"bg_path": "videos/chisato_peak.jpg",
|
||||
"password": "password"
|
||||
}
|
||||
|
||||
BIN
src/icon.png
Normal file
BIN
src/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 357 KiB |
17
src/index.js
17
src/index.js
@@ -80,6 +80,14 @@ wss.on('connection', function connection(ws) {
|
||||
//// Web server ////
|
||||
|
||||
// app settings
|
||||
|
||||
// disable cache globally because it may break things between server restarts,
|
||||
// since the paths aren't unique
|
||||
app.use(function (req, res, next) {
|
||||
res.setHeader("Cache-Control", "no-cache, no-store, must-revalidate");
|
||||
next();
|
||||
});
|
||||
|
||||
app.use('/', express.static(__dirname));
|
||||
app.use(bodyParser.urlencoded({
|
||||
extended: true
|
||||
@@ -92,13 +100,6 @@ app.use(session({
|
||||
logged: false
|
||||
}));
|
||||
|
||||
// disable cache globally because it may break things between server restarts,
|
||||
// since the paths aren't unique
|
||||
app.use(function (req, res, next) {
|
||||
res.setHeader("Cache-Control", "no-cache, no-store, must-revalidate");
|
||||
next();
|
||||
});
|
||||
|
||||
|
||||
// home page
|
||||
app.get("/", function (req, res) {
|
||||
@@ -128,7 +129,7 @@ app.post("/login", function (req, res) {
|
||||
|
||||
|
||||
// video streaming
|
||||
app.get("/video", function (req, res) {
|
||||
app.get("/video-3", function (req, res) {
|
||||
// Ensure there is a range given for the video
|
||||
const range = req.headers.range;
|
||||
if (!range) {
|
||||
|
||||
@@ -21,7 +21,7 @@ body[data-background] {
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
background-blend-mode: darken;
|
||||
background-blend-mode: multiply;
|
||||
}
|
||||
|
||||
.container {
|
||||
|
||||
@@ -5,7 +5,14 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" type="text/css" href="main.css">
|
||||
<script defer type="text/javascript" src="client.js"></script>
|
||||
<title>Client</title>
|
||||
<title>Orboverse</title>
|
||||
<link rel="icon" href="/icon.png" type="image/png">
|
||||
<!-- Open Graph Meta Tags -->
|
||||
<meta property="og:title" content="The Orboverse">
|
||||
<meta property="og:description" content="Join the heliocentrism ☀️ gang. 🔫.">
|
||||
<meta property="og:image" content="/stars.jpg">
|
||||
<meta property="og:url" content="https://anistream.cazzzer.com">
|
||||
<meta property="og:type" content="website">
|
||||
</head>
|
||||
<body data-background>
|
||||
<div class="container">
|
||||
@@ -13,7 +20,7 @@
|
||||
<h1>Welcome to the Orboverse</h1>
|
||||
</header>
|
||||
<video id="videoPlayer" muted controls controlsList="nodownload noplaybackrate">
|
||||
<source src="/video" type="video/mp4" />
|
||||
<source src="/video-3" type="video/mp4" />
|
||||
<!-- subtitle track-->
|
||||
<track kind="subtitles" src="/subtitles" srclang="en" label="English" default>
|
||||
<p>Your browser does not support the video tag.</p>
|
||||
|
||||
BIN
src/stars.jpg
Normal file
BIN
src/stars.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 40 KiB |
Reference in New Issue
Block a user