You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>Minimalistic WebPlayer</title>
|
|
|
|
<link rel="stylesheet" href="application.css">
|
|
|
|
<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'),
|
|
|
|
flags:
|
|
|
|
{ debug: true
|
|
|
|
, withDownload: true
|
|
|
|
, extentions:
|
|
|
|
[ { extention: "mkv", mime: "video/x-matroska" }
|
|
|
|
, { extention: "mp4", mime: "video/mp4" }
|
|
|
|
]
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
app.ports.reloadVideoSource.subscribe(function() {
|
|
|
|
document.querySelector("video").load();
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|