elm-twitch/index.html

27 lines
768 B
HTML

<!doctype HTML>
<html>
<head>
<title>twitch.tforgione.fr</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/video-js.css" rel="stylesheet">
</head>
<body>
<div id="container"></div>
<script src="js/vd.js"></script>
<script src="js/main.js"></script>
<script>
var app = Elm.Main.init({
node: document.getElementById('container')
});
app.ports.registerVideo.subscribe(function(args) {
requestAnimationFrame(function() {
vd.setup(args[0], args[1] + "/manifest.mpd")
});
});
</script>
</body>
</html>