Recording is opt-in per session. A browser doesn’t record until you call
replays.start(), so a session you never started a replay on produces no video.Starting and stopping recordings
To start recording a browser session, use the replays API on an active browser:Multiple recordings per session
You can create multiple replay recordings for a single browser session. Each recording gets a uniquereplay_id and can be started and stopped independently:
Downloading all replays
To access all replays for a browser session, list and access them via url or as downloads:Embedding a replay
Set an iframe’ssrc to the replay_view_url returned when you start or list a replay. Give the iframe an explicit aspect ratio so the player keeps its shape while loading, and enable fullscreen playback. Merge the example’s frame-src sources into your existing Content Security Policy.
Replace REPLAY_VIEW_URL with the URL returned by the API:
16 / 10. Treat replay URLs as sensitive.