Play once then loop from specified frames

Implementing lottie on web page. I want to play the lottie through once, then loop only between specified frames.

I’m not a dev but can copy, paste and tweak snippets!

I’ve searched high and low and I can’t find many examples of how you interact with the timeline - I thought LottieFiles would have loads of examples tbh - am I looking in the wrong places? This has to be the most obvious use case - animation arrival followed by looping frames.

If anybody could post the required script it would be very much appreciated!