pub fn play_with_delay(yaml: &str, step_delay_secs: f64) -> Result<(), String>Expand description
Play with an artificial pause (seconds) between each step: a slow-motion replay for watching a
script drive the UI. Returns Err without spawning when the script is empty or does not parse,
so a UI can call it to validate (see is_playable) and to run from one path.
A run can be suspended and resumed with pause_playback / resume_playback, and abandoned
with stop_playback; playing_signal and paused_signal are what a transport control
binds to. Refuses while a run is already live, so two Play presses cannot interleave two scripts
against the same UI.
ยงErrors
Returns an error when a recording is live, a script is already playing, or the script does not parse or has no steps.