pub unsafe extern "C" fn b2RecPlayer_SetKeyframePolicy(
player: *mut b2RecPlayer,
budgetBytes: usize,
minIntervalFrames: c_int,
)Expand description
Tune the keyframe ring used to speed up backward seeking. A keyframe is a periodic snapshot the player restores from instead of replaying from the start, trading memory for seek speed. @param player the recording player @param budgetBytes Memory cap for all retained keyframe allocations, clamped to the library recording limit. @param minIntervalFrames Finest spacing between keyframes, in frames. A zero budget or a non-positive interval keeps that value. Clears the existing ring, so call b2RecPlayer_Restart afterward to repopulate it under the new policy.