screencastgen

Offline Reader

Packages hosted reader assets into a standalone ZIP that opens without a web server.

Source: screencastgen/offline_reader.py


Function

build_offline_reader_archive(manifest_path, output_path) -> str

Loads reader_manifest.json, validates that every referenced audio, presenter, and page-image asset exists beneath the manifest directory, then writes an archive containing:

The archive is assembled through a temporary file and atomically moved into place. Assets outside the reader output directory are rejected.

The embedded viewer provides synchronized word highlighting, seeking, playback speed, auto-scroll, document page images, theme selection, and a draggable, resizable presenter.

See Also