equal
deleted
inserted
replaced
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 |