elm-twitch/index.html

28 lines
835 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() {
console.log(document.getElementById(args[0]));
vd.setup(args[0], args[1] + "/manifest.mpd")
});
});
</script>
</body>
</html>