Fix issues

This commit is contained in:
2020-10-04 17:06:03 +02:00
parent 55fc0437a4
commit bb3a912cf3
4 changed files with 36 additions and 27 deletions
+4 -11
View File
@@ -15,18 +15,11 @@
node: document.getElementById('container')
});
function setup(args) {
if (document.getElementById(args[0]) != undefined) {
vd.setup(args[0], args[1] + "/manifest.mpd")
} else {
setTimeout(function() {
setup(args);
}, 50);
}
}
app.ports.registerVideo.subscribe(function(args) {
setup(args);
requestAnimationFrame(function() {
console.log(args);
vd.setup(args[0], args[1] + "/manifest.mpd")
});
});
</script>
</body>