workarounds a jwplayer bug.
--- a/src/ldt/ldt/static/ldt/js/LdtPlayer-release.js Tue Jan 31 16:02:39 2012 +0100
+++ b/src/ldt/ldt/static/ldt/js/LdtPlayer-release.js Wed Feb 01 14:34:12 2012 +0100
@@ -2327,7 +2327,11 @@
// timecode
if ( pageoffset.substring( 2 ) != null ) {
var offsettime = pageoffset.substring( 2 );
- this._Popcorn.currentTime( parseFloat( offsettime ) );
+ this._Popcorn.currentTime( parseFloat(offsettime) );
+
+ /* we have to trigger this signal manually because of a
+ bug in the jwplayer */
+ this._Popcorn.trigger("seeked", parseFloat(offsettime));
}
} else if ( pageoffset.substring(0, 3) === "id=") {
// annotation
@@ -2337,7 +2341,7 @@
this._serializer.sync(IriSP.wrap(this, function() {
this.lookupAnnotation.call(this, annotationId);
}));
- }
+ }
}
};
@@ -2399,6 +2403,10 @@
if (typeof(annotation) !== "undefined") {
this._Popcorn.currentTime(annotation.begin / 1000);
+
+ /* we have to trigger this signal manually because of a
+ bug in the jwplayer */
+ this._Popcorn.trigger("seeked", annotation.begin / 1000);
this._Popcorn.trigger("IriSP.Mediafragment.showAnnotation", annotationId);
}