@Override public long getDuration() {
    return composition == null ? 0 : (long) composition.getDuration();
  }
Returns the current value of the currently playing animation taking into
account direction, min and max frames.
lottie/src/main/java/com/airbnb/lottie/utils/LottieValueAnimator.java