public void setMinAndMaxFrame(final String markerName) {
    if (composition == null) {
      lazyCompositionTasks.add(c -> setMinAndMaxFrame(markerName));
      return;
    }
    Marker marker = composition.getMarker(markerName);
    if (marker == null) {
      throw new IllegalArgumentException("Cannot find marker with name " + markerName + ".");
    }
    int startFrame = (int) marker.startFrame;
    setMinAndMaxFrame(startFrame, startFrame + (int) marker.durationFrames);
  }
Sets the minimum and maximum frame to the start time and start time + duration
of the specified marker.

@throws IllegalArgumentException if the marker is not found.
lottie/src/main/java/com/airbnb/lottie/LottieDrawable.java