Skip to content

· 6 min read · Showbug team

Screen recording vs. session replay: what each captures and what each hides

Pixels versus DOM events: what a screen recording and a session replay show well, where each goes blind, how masking differs, and which one engineers open first.

“Can you send a recording?” is one of the most common replies to a bug report. But “recording” can mean two very different things. A screen recording is a video of pixels. A session replay is a reconstruction of the page from the events that changed it. They look similar when you press play, and they fail in completely different ways.

If you are choosing a bug reporting tool, or deciding what to capture from your own customers, it helps to know exactly what each one sees.

Two ways to “record” a web page

Screen recording: pixels

A screen recording captures what was drawn on the screen, frame by frame, as video. In the browser this usually goes through the Screen Capture API (getDisplayMedia), which asks the user to pick a tab, a window or the whole screen, and shows a permission prompt they have to accept. The result is a video file, often with audio if the microphone was shared too.

The recording knows nothing about the page’s structure. It does not know that a rectangle is a button, or that a number came from an API. It only knows what colour each pixel was.

Session replay: DOM events

A session replay script runs inside your page. It takes a snapshot of the DOM when recording starts, then records every change after that: elements added and removed, text changed, attributes updated, inputs, scrolls, mouse movement, viewport changes. Open-source libraries such as rrweb do this, and many commercial tools build on the same idea.

To play it back, a player rebuilds the page from the snapshot in a sandboxed frame and applies the events in order. What you watch is your page, re-rendered, not a video of it.

What each shows well

Where screen recording wins

  • Anything drawn rather than written. Canvas charts, WebGL, maps, PDFs rendered to canvas, video elements and images all appear exactly as the user saw them. Many replay libraries skip canvas by default or capture it only as periodic snapshots.
  • Cross-origin content. A payment form, an embedded document viewer or a third-party widget in a cross-origin iframe is invisible to a replay script running in your page. A video of the tab shows it.
  • Exact visual state. Fonts that failed to load, a CSS bug on one browser, a modal stuck behind an overlay: the video shows what was really on screen. A replay re-renders with the styles and assets available at playback time, which may not match.
  • Timing and audio. Video carries real time and, if the user narrated, their voice in sync with what they did. Hearing “now I click Save, and…” at the exact moment of the click is hard to beat.

Where session replay wins

  • Inspectability. In a replay you can pause and inspect the DOM: which element was clicked, its classes, its text, its position. That is often the fastest route from “this button” to the component that renders it.
  • Precision of interaction. Replays record each click, input and scroll as an event, so you can see exactly what happened even when the movement was too fast to notice on video.
  • Resolution independence. A replay re-renders at whatever size you choose. Small text that would be blurry in a compressed video is crisp.
  • Size, in many cases. For a mostly static page, a stream of DOM changes can be far smaller than video. For a page that changes constantly (animations, live data, large tables re-rendering), the event stream can grow large too. It depends on how much the DOM churns, not on how long the session lasts.

Where each goes blind

Neither format is a complete record. Knowing the blind spots keeps you from trusting the wrong one.

  • Replay misses canvas, cross-origin iframes, closed shadow roots, and anything the page’s CSS or assets render differently at playback time. If your images or styles sit behind authentication or have changed since, the replay can look broken even when the user’s screen was fine.
  • Video misses structure: what was clicked, what the element was, what text was selected. It also misses what was outside the shared surface. If the user shared one tab, a popup in another window is not in it.
  • Both miss what the server did. Neither shows the request that failed or the exception that was thrown. That evidence lives in console messages and network metadata, which is why a good bug report pairs a recording with them.

Privacy: masking the DOM vs. painting over pixels

This is where the two approaches differ the most, and where it matters most for a widget your customers use.

In a replay, masking happens before capture

Because a replay script reads the DOM, it can decide what never leaves the browser. Common defaults:

  • Input values replaced with placeholder characters before they are serialized.
  • Password, card and one-time-code fields hidden completely, including their length.
  • Elements you mark (with an attribute or class) replaced by an empty box of the same size.
  • An option to mask all text, for pages where any visible text is sensitive.

The key property is that masked content is never in the recording at all. Nobody can unmask it later, including you.

In a video, masking has to be painted on

A video is pixels, so there is no attribute to strip. To hide a field you have to know where it is on screen and cover it before the frame is recorded. That means working out element positions frame by frame, covering text fields, editors and marked elements, and covering cross-origin frames whole because you can’t see inside them. If the position of something sensitive can’t be worked out reliably, the safe choice is to cover the whole frame.

Blurring after the fact (in post-processing on a server) is weaker: the unmasked video existed at some point, and blur can sometimes be partly reversed. If a tool records video of your customers’ screens, ask where masking happens: in the browser before recording, or later.

What neither can mask

Plain page text is the hard case for both. Names, balances, addresses and ticket contents are just text. A replay can mask all text if you turn it on; a video can cover every text box, at the cost of making the recording much less useful. And audio is not masked by either: if a user reads a card number out loud, it is in the audio.

Retention and size

Both formats are personal data, and both should have a retention limit. Practical questions to ask:

  • How long are recordings kept, and is deletion automatic?
  • Can a single session be deleted on request?
  • Where are the files stored, and in which region?
  • Do summaries and transcripts outlive the video? (Often they should: they are smaller, less sensitive and still useful for the ticket.)

Which one engineers open first

When a report has all of these, a practical reading order is:

  1. The written summary and the console errors. If an exception and a failed request are right there, that may be enough.
  2. The video, to understand what the user saw and meant. Especially with narration, it answers “what were they trying to do?” in seconds.
  3. The replay, to find exactly what was clicked. When the fix needs the specific element or sequence, the replay is faster than scrubbing video.

That order suggests the answer to “which one should we capture?” is often both, if you can do so with masking you trust and a retention limit you can explain to customers.

How Showbug captures them

Showbug records both, side by side. The tab video comes from the tab the customer chooses to share (sharing a window or the whole screen is refused), with form fields, editors and marked elements painted over in the browser before frames are recorded. The page replay uses rrweb, with field values starred and sensitive fields hidden. Both are stored in Amazon S3 in the Mumbai region and deleted after 30 days; the summary, transcript and diagnostics stay. The privacy and masking docs list exactly what is hidden by default and what is not, and the sessions docs show how the replay and video sit next to the transcript.

Summary

  • Screen recording shows exactly what the user saw, including canvas and cross-origin content, with real timing and audio. Masking has to be painted onto pixels.
  • Session replay shows the structure of what happened and is inspectable. Masking can happen before anything is captured, but it misses what the DOM doesn’t describe.
  • Neither shows the server. Pair them with console messages and request metadata.
  • Decide on retention and masking first, then choose formats. A recording you can’t safely keep is not worth capturing.

More from the blog

Try Showbug with your own customers

Showbug is pre-launch. Join the waitlist with just your email, or read the docs to see exactly what a report contains.