PhoenixReplay.Web.Export.Stage (PhoenixReplay v0.6.2)

Copy Markdown View Source

The page the export browser films: the replay frame at the recorded viewport, centred on a dark canvas, with the player's pointer overlay over it and nothing else.

It drives its frame as the player does, over a private PhoenixReplay.Web.Player.Channel: the frame is rendered once the stage has subscribed, so its announcement is never missed, and the stage passes it on to the ExportStage hook as "phx_replay:frame_ready". The hook asks for each event with "seek". PhoenixReplay.Export.Screenshots only calls the hook, window.phoenixReplayStage, to wait for the frame and to show each moment before its screenshot.

pointer=false hides the pointer while the page still scrolls as recorded.