@SuppressWarnings("WeakerAccess") public float getDuration() {
    return (long) (getDurationFrames() / frameRate * 1000);
  }
Used to determine if an animation can be drawn with hardware acceleration.
lottie/src/main/java/com/airbnb/lottie/LottieComposition.java