Math.floor duration and currentTime