src/js/serializers/JSONSerializer.js
branchpopcorn-port
changeset 613 c2726c5c6477
parent 610 7533dd920805
child 628 55282f5ef477
equal deleted inserted replaced
612:5292f847b43a 613:c2726c5c6477
   263   }
   263   }
   264   
   264   
   265   return ret_array;
   265   return ret_array;
   266 };
   266 };
   267 
   267 
       
   268 /** return the current chapitre
       
   269     @param currentTime the current time, in seconds.
       
   270 */
       
   271 IriSP.JSONSerializer.prototype.currentChapitre = function(currentTime) {
       
   272   return this.currentAnnotations(currentTime, this.getChapitrage())[0];
       
   273 };
   268 
   274 
   269 /** returns a list of ids of tweet lines (aka: groups in cinelab) */
   275 /** returns a list of ids of tweet lines (aka: groups in cinelab) */
   270 IriSP.JSONSerializer.prototype.getTweetIds = function() {
   276 IriSP.JSONSerializer.prototype.getTweetIds = function() {
   271   if (typeof(this._data.lists) === "undefined" || this._data.lists === null)
   277   if (typeof(this._data.lists) === "undefined" || this._data.lists === null)
   272     return [];
   278     return [];