center hls

pull/243/head
mpromonet 3 years ago
parent 134b79d603
commit b38bc70b9b

@ -1,5 +1,9 @@
<html>
<link rel="shortcut icon" href="about:blank"/>
<style>
h3 { text-align: center }
video { display: block; margin: 0 auto }
</style>
<body>
<!--fill streamList variable with the list of streams -->
<script src="/getStreamList?streamList" ></script>
@ -14,7 +18,6 @@
title.innerText = stream
videos.appendChild(title)
var video = document.createElement("video");
video.style = "margin: 0 auto"
videos.appendChild(video)
var hls = new Hls();
hls.loadSource(stream+".m3u8");

Loading…
Cancel
Save