Merge branch 'master' of gitlab.com:MrFry/question-node-server

This commit is contained in:
MrFry 2019-10-26 20:50:11 +02:00
commit 8a0fd4fdc3
2 changed files with 9 additions and 4 deletions

View file

@ -88,7 +88,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>