PhoenixReplay.Export.Screenshots (PhoenixReplay v0.6.2)

Copy Markdown View Source

Screenshots each shot of a PhoenixReplay.Export.Schedule in Chromium.

It opens PhoenixReplay.Web.Export.Stage in a browser context the size of the schedule's canvas, at its device pixel ratio, waits until the stage's frame is ready, then has the stage show each shot's moment and saves a PNG of it. The stage seeks its frame itself. The browser is closed whatever happens, and a {PhoenixReplay.Export, :cancel} message stops it between screenshots.

Summary

Functions

Captures the shots of a recording's schedule into dir, reporting progress from 0 to 1.

Functions

run(runtime, recording_id, schedule, dir, export, options, progress)

Captures the shots of a recording's schedule into dir, reporting progress from 0 to 1.