diff -r 5292f847b43a -r c2726c5c6477 src/js/serializers/JSONSerializer.js --- a/src/js/serializers/JSONSerializer.js Thu Jan 12 13:00:11 2012 +0100 +++ b/src/js/serializers/JSONSerializer.js Thu Jan 12 13:00:25 2012 +0100 @@ -265,6 +265,12 @@ return ret_array; }; +/** return the current chapitre + @param currentTime the current time, in seconds. +*/ +IriSP.JSONSerializer.prototype.currentChapitre = function(currentTime) { + return this.currentAnnotations(currentTime, this.getChapitrage())[0]; +}; /** returns a list of ids of tweet lines (aka: groups in cinelab) */ IriSP.JSONSerializer.prototype.getTweetIds = function() {