Something similar was done for stop motion, check out https://github.com/thijsc/dragonblaze
The pattern or concept could be modified to do what you are looking for.
Combine that with the new UI controls in the beta/preview version for v3.21/v3.22 and you could make a pause, play, next, previous kind of tool for stepping through time.