Fix issues
This commit is contained in:
+4
-11
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user