src/js/widgets/segmentsWidget.js
branchpopcorn-port
changeset 477 1e51d638e7ea
parent 474 c1998d5d552e
child 479 24308670f1bb
equal deleted inserted replaced
476:3957157b7f96 477:1e51d638e7ea
    56 
    56 
    57     var begin = Math.round((+ annotation.begin) / 1000);
    57     var begin = Math.round((+ annotation.begin) / 1000);
    58     var end = Math.round((+ annotation.end) / 1000);
    58     var end = Math.round((+ annotation.end) / 1000);
    59     var duration = this._serializer.currentMedia().meta["dc:duration"] / 1000;
    59     var duration = this._serializer.currentMedia().meta["dc:duration"] / 1000;
    60     var id = annotation.id;
    60     var id = annotation.id;
    61     var startPourcent 	= IriSP.timeToPourcent(begin, duration);
    61     var startPourcent 	= IriSP.timeToPourcent(begin, duration) + onePxPercent;
    62     
    62     
    63     /* some sort of collapsing occurs, so we only have to substract one pixel to each box instead of
    63     /* some sort of collapsing occurs, so we only have to substract one pixel to each box instead of
    64        two
    64        two
    65     */
    65     */
    66     var endPourcent 	= IriSP.timeToPourcent(end, duration) - startPourcent - onePxPercent * 1.5;
    66     var endPourcent 	= IriSP.timeToPourcent(end, duration) - startPourcent - onePxPercent * 1.5;