Adjust return value of getDuration, when currentTime exceeds duration