public float getMaxFrame() {
    if (composition == null) {
      return 0;
    }
    return maxFrame == Integer.MAX_VALUE ? composition.getEndFrame() : maxFrame;
  }
Returns the current speed. This will be affected by repeat mode REVERSE.
lottie/src/main/java/com/airbnb/lottie/utils/LottieValueAnimator.java