minimal-webplayer/public/index.html

38 lines
781 B
HTML
Raw Normal View History

2021-03-22 16:48:51 +00:00
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>Minimalistic WebPlayer</title>
2021-03-31 11:45:06 +00:00
<link rel="stylesheet" href="application.css">
2021-03-22 16:48:51 +00:00
<script type="text/javascript" src="application.js"></script>
</head>
<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<div id="elm"></div>
<script>
const app = Elm.Main.init({
node: document.getElementById('elm'),
2021-03-31 11:45:06 +00:00
flags:
{ debug: true
, withDownload: true
, extentions:
[ { extention: "mkv", mime: "video/x-matroska" }
, { extention: "mp4", mime: "video/mp4" }
]
}
2021-03-22 16:48:51 +00:00
});
app.ports.reloadVideoSource.subscribe(function() {
document.querySelector("video").load();
});
2021-03-22 16:48:51 +00:00
</script>
</body>
2021-03-22 20:11:49 +00:00
</html>