src/js/widgets/annotationsListWidget.js
branchpopcorn-port
changeset 820 7968346b9689
parent 784 2ce658b19b96
child 833 33a5d5882be4
equal deleted inserted replaced
819:9b8e68803f6f 820:7968346b9689
   108   */
   108   */
   109      
   109      
   110   var platf_url = IriSP.widgetsDefaults["AnnotationsListWidget"].ajax_url
   110   var platf_url = IriSP.widgetsDefaults["AnnotationsListWidget"].ajax_url
   111                                       .replace(/\{/g, '{{').replace(/\}/g, '}}');
   111                                       .replace(/\{/g, '{{').replace(/\}/g, '}}');
   112   var media_id = this._serializer.currentMedia()["id"];
   112   var media_id = this._serializer.currentMedia()["id"];
   113   var duration = +this._serializer.currentMedia().meta["dc:duration"];
   113   var duration = this._serializer.getDuration();
   114   
   114   
   115   var begin_timecode = (Math.floor(tcode) - 300) * 1000;
   115   var begin_timecode = (Math.floor(tcode) - 300) * 1000;
   116   if (begin_timecode < 0)
   116   if (begin_timecode < 0)
   117     begin_timecode = 0;
   117     begin_timecode = 0;
   118     
   118