Skip to main content

Module cast_player

Module cast_player 

Source
Expand description

Asciicast v2 parser and timed playback engine.

Parses asciicast v2 files (JSON header + newline-delimited event tuples) and provides a CastPlayer that drives an avt::Vt virtual terminal with timed event replay, seeking, and pause.

Structs§

CastEvent
A single output event: [time, "o", data].
CastFile
Parsed cast file ready for playback.
CastHeader
Asciicast v2 header.
CastPlayer
Manages timed replay of a cast file.

Functions§

format_time
Format milliseconds as MM:SS.