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() fname = fname.pop()
res.render('stuff/video', { res.render('stuff/video', {
path: p, path: p,
fname fname,
url
}) })
} }
}) })

View file

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