Opal::Asciicast::PlaybackEngine
Playback and inspection engine for Asciinema v2 recordings.
Reconstructs terminal screens into UI::Buffer frames, supports
frame-by-frame stepping, seeking, speed multipliers, and overlay-respecting compositing.
Constructors
new(recording : Reader::Recording)
SourceInstance methods
Attaches a persistent overlay element to be composited over playback
current_index
Sourceduration
Sourceempty?
Sourceframes
Sourcehas_next?
Sourcehas_prev?
Sourceheight
Sourcelooping?
Sourcepause
Sourcepaused?
SourceAutomated playback loop yielding each frame buffer and frame index
playing?
Sourcerecording
Sourcerender_frame(target : UI::Buffer, x : Int32 = 0, y : Int32 = 0, respect_overlays : Bool = false) : Nil
Composites the current playback frame into the target buffer.
If respect_overlays is true, does not overwrite non-space cells already in target.
resume
SourceSeeks to the frame closest to the specified timestamp in seconds
speed
Sourcestop
Sourcetotal_frames
Sourcewidth
Source