seekToKeyframe

open suspend override fun seekToKeyframe(target: Pts): Pts?


open suspend override fun seekToKeyframe(target: Pts, choice: KeyframeChoice): Pts?

Finds the keyframes either side of target by reading the first picture after a forward seek and, for KeyframeChoice.Closest, after a backward one, then lands with a backward seek aimed at the chosen keyframe's own time, which KiteFFmpeg lands on exactly (#496). A source with no picture has nothing to choose between, because every sound packet is a keyframe.