Lingers on the current frame for seconds in the output video.
Unlike pz_wait(), the hold advances only the video clock. Captions,
annotations, and keystroke callouts added afterward appear after the
held segment. When the page is not recording this is a no-op, so
debugging a chain with the recording commented out doesn't pay for
video-only pauses. A camera move still in progress (see pz_camera())
finishes before the hold begins.
Examples
if (FALSE) { # paparazzi:::examples_run("av")
page <- pz_open(pz_example("tasks"))
# Without a recording, pz_record_hold() returns straight away
system.time(pz_record_hold(page, 2))
path <- file.path(tempdir(), "help.mp4")
page |>
pz_record_start(path) |>
pz_act_click("#toggle-help") |>
# Give viewers a second to read the help text
pz_record_hold(1) |>
pz_record_stop()
pz_close(page)
}
