Rebuild a screen recording from its chunks
Keep a screen recording's chunks in order as they are recorded and rebuild the finished recording from them, with the file reference it is published with
Keep a screen recording's chunks in order as they are recorded and rebuild the finished recording from them, with the file reference it is published with
Give chunks ([{ base64 } or { text }] in the order they were recorded; at most 1000 and 8 MB in all), and optionally recording_id (screen-record:<words>; one is made when left out), media_type (video/webm when left out) and observed_at (the ISO time each chunk is stamped with). Each chunk is kept through the folder's own store (do-work/recorded-file-store.ts) under the key the browser uses (<recording_id>:chunk:<sequence>), in a stand-in IndexedDB held only in this run's memory; then the file reference a finished recording is published with (kind local-playback.indexeddb-chunks, database, store, chunk_refs, media_type, byte_length) is built and the recording read back in order. Answers file, kept_keys and rebuilt ({ byte_length, media_type, identity: 1f: and the BLAKE3 hex of the rebuilt bytes, matches_chunks }). Refuses no chunks, a chunk with neither base64 nor text, too many chunks or bytes, and a recording_id or media_type of another shape. It captures no screen, keeps nothing in any browser once the run ends, and saves, names, removes or publishes no recording. The screen's other work (asking for the screen through getDisplayMedia, the recording panel, and publishing through the workflow actions in screen-recording-requests.ts, which needs the workspace's request sender) needs a browser and is not done by this run.
Nothing: your AI starts it with your words.
Connect the AI you already use to Trillion once. Then ask in your own words; your AI finds this tool by what it does and runs it.
Say to your AI: “Use Trillion to keep a screen recording's chunks in order as they are recorded and rebuild the finished recording from them, with the file reference it is published with”