Session Recording
Session Recording lets a reviewer replay what the candidate did on your test page: what was on the page, where they clicked, what they typed and how they scrolled. See it in action.
It records the page's content (its DOM), not a video of the screen. Other tabs, other applications and the rest of the desktop are not recorded; use tabSwitch and captureSwitchedTab for those, and candidate recording (recordTestTaker) for a video of the candidate.
Enabling Session Recording
Set recordSession: true in trackingOptions:
const proctoringOptions = {
trackingOptions: {
recordSession: true
}
}
Session Recording costs additional credits. See Pricing & Credits.
Hiding Sensitive Content
Because the recording replays your page, anything on it can end up in the recording, including what the candidate types. Password fields are masked automatically. Use these two options (top level of proctoringOptions) for everything else. Masking replaces an element's text; to keep what is typed into a field out of the recording, block the field:
| Option | Type | Default | Description |
|---|---|---|---|
sessionRecordingSelectorsToMask | array | [] | CSS selectors of elements whose text is replaced with * characters in the recording. The layout stays visible. |
sessionRecordingSelectorsToBlock | array | [] | CSS selectors of elements left out of the recording entirely. They show as an empty box of the same size. |
const proctoringOptions = {
trackingOptions: { recordSession: true },
sessionRecordingSelectorsToMask: ['.candidate-email', '#answer-key'],
sessionRecordingSelectorsToBlock: ['.countdown-timer', 'iframe.payment'],
}
You can also add the class rr-block to any element in your markup to leave it out.
Both options must be arrays of selector strings. Anything else is rejected by .setup().
What Is Not Recorded
- Content inside cross-origin
<iframe>s. <canvas>drawings and<video>content.- Anything outside your page: other tabs, other windows, the desktop.
Playback
The recording appears in the proctoring report from .showReport() (set showSessionRecording: false to hide it). Reviewers can play it at 1×, 2×, 4× or 8× speed. See Viewing a Single Report.
reportOptions key | Type | Default | Description |
|---|---|---|---|
showSessionRecording | bool | true | Show the session recording player. |
sessionRecordingDOMId | str | ap-report__session | ID of the element to render the player into. |
Upload Interval
Recorded events are uploaded in batches every 60 seconds. The last batch is uploaded when you call .stop().