# HG changeset patch # User hamidouk # Date 1328103252 -3600 # Node ID e69f668634df3b8bff8b49f83c5d9670db3cddd7 # Parent 7779fbe8432e04548d252c9a0dfd750fda4c1f68 workarounds a jwplayer bug. diff -r 7779fbe8432e -r e69f668634df src/ldt/ldt/static/ldt/js/LdtPlayer-release.js --- 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); }