# HG changeset patch # User hamidouk # Date 1328022123 -3600 # Node ID 332e3f37e392da7c02883524be258fff408266cb # Parent 501c005917394468865fbffcabba428baf31b781 new player version. diff -r 501c00591739 -r 332e3f37e392 src/ldt/ldt/static/ldt/js/LdtPlayer-release.js --- a/src/ldt/ldt/static/ldt/js/LdtPlayer-release.js Tue Jan 31 15:38:07 2012 +0100 +++ b/src/ldt/ldt/static/ldt/js/LdtPlayer-release.js Tue Jan 31 16:02:03 2012 +0100 @@ -2745,9 +2745,14 @@ var currentTime = this._Popcorn.currentTime(); var currentAnnotation = this._serializer.currentChapitre(currentTime); - if (IriSP.null_or_undefined(currentAnnotation)) - var currentAnnotation = this._serializer.currentAnnotation(currentTime)[0]; // FIXME : use the others ? - + if (IriSP.null_or_undefined(currentAnnotation)) { + var c_annots = this._serializer.currentAnnotation(currentTime) + if (c_annots.length != 0) + var currentAnnotation = c_annots[0]; // FIXME : use the others ? + else + return; + } + /* move the arrow only if the current annotation changes */ if (currentAnnotation != this._oldAnnotation) { var begin = (+ currentAnnotation.begin) / 1000;