--- a/integration/js/mashupplayer.js Wed Nov 28 15:46:05 2012 +0100
+++ b/integration/js/mashupplayer.js Wed Nov 28 17:21:26 2012 +0100
@@ -81,7 +81,18 @@
})
.on("mouseout", ".item-video", function() {
project.trigger("mouseout-annotation");
- })
+ });
+
+ $(".mashup-frise")
+ .click(function(evt) {
+ if (!mashup.duration.milliseconds) {
+ return;
+ }
+ var el = $(this), t = ( evt.pageX - el.offset().left ) * mashup.duration / el.width(), segment = mashup.getAnnotationAtTime(t);
+ if (segment) {
+ project.trigger("click-annotation", segment.annotation);
+ }
+ });
});