2020-10-03 17:44:16 +01:00
|
|
|
<!doctype HTML>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>twitch.tforgione.fr</title>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2020-10-04 15:37:01 +01:00
|
|
|
<link href="css/video-js.css" rel="stylesheet">
|
2020-10-03 17:44:16 +01:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="container"></div>
|
2020-10-04 15:37:01 +01:00
|
|
|
<script src="js/vd.js"></script>
|
2020-10-03 17:44:16 +01:00
|
|
|
<script src="js/main.js"></script>
|
|
|
|
<script>
|
2020-10-04 15:37:01 +01:00
|
|
|
var app = Elm.Main.init({
|
2020-10-03 17:44:16 +01:00
|
|
|
node: document.getElementById('container')
|
|
|
|
});
|
2020-10-04 15:37:01 +01:00
|
|
|
|
|
|
|
function setup(args) {
|
|
|
|
if (document.getElementById(args[0]) != undefined) {
|
|
|
|
vd.setup(args[0], args[1] + "/manifest.mpd")
|
|
|
|
} else {
|
|
|
|
setTimeout(function() {
|
|
|
|
setup(args);
|
|
|
|
}, 50);
|
|
|
|
}
|
|
|
|
}
|
2020-10-04 15:37:47 +01:00
|
|
|
|
|
|
|
app.ports.registerVideo.subscribe(function(args) {
|
|
|
|
setup(args);
|
|
|
|
});
|
2020-10-03 17:44:16 +01:00
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|