Changed localhost to site url, video style changes

This commit is contained in:
MrFry 2019-10-26 20:47:36 +02:00
parent a08a9049e2
commit 1252f49a7a
2 changed files with 9 additions and 4 deletions

View file

@ -87,7 +87,8 @@ app.get('/*.mp4', function (req, res) {
fname = fname.pop()
res.render('stuff/video', {
path: p,
fname
fname,
url
})
}
})

View file

@ -11,15 +11,19 @@
font: normal 14px Verdana;
color: #999999;
}
video {
object-fit: fill;
width: 100%
}
</style>
</head>
<center>
<h2>
<%= fname %>
</h2>
<video id="videoPlayer" controls muted="muted" autoplay>
<source src="http://localhost:8080<%= path %>?stream=true" type="video/mp4">
</video>
</center>
<video id="videoPlayer" controls muted="muted" autoplay>
<source src="<%= url %><%= path %>?stream=true" type="video/mp4">
</video>
</body>
</html>