mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Changed localhost to site url, video style changes
This commit is contained in:
parent
a08a9049e2
commit
1252f49a7a
2 changed files with 9 additions and 4 deletions
|
@ -87,7 +87,8 @@ app.get('/*.mp4', function (req, res) {
|
|||
fname = fname.pop()
|
||||
res.render('stuff/video', {
|
||||
path: p,
|
||||
fname
|
||||
fname,
|
||||
url
|
||||
})
|
||||
}
|
||||
})
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue