--- a/test/integration/index.htm Tue Oct 18 15:38:30 2011 +0200
+++ b/test/integration/index.htm Tue Oct 18 15:39:47 2011 +0200
@@ -41,11 +41,12 @@
};
IriSP.loadLibs(IriSP.lib, config.gui.css, function() {});
- Popcorn = Popcorn("#video");
+ pop = Popcorn("#video");
dt = new IriSP.DataLoader();
ser = new IriSP.JSONSerializer(dt, "../test.json");
- var player = new IriSP.PlayerWidget(Popcorn, config, ser);
- ser.sync(IriSP.wrap(player, player.draw));
+ var player = new IriSP.PlayerWidget(pop, config, ser);
+ var annotationWidget = new IriSP.AnnotationsWidget(pop, config, ser);
+ ser.sync(function() { player.draw(); annotationWidget.draw(); });
});
</script>