Standard Proctoring
The .setup() method accepts a proctoringOptions object that controls what AutoProctor monitors and how the proctoring UI behaves.
await apInst.setup(proctoringOptions)
Every key is optional. To use a default, leave the key out: unknown keys, wrong types and null (for most keys) make .setup() throw, after showing the error in a browser alert.
Tracking Options
The trackingOptions key defines which monitoring features are active during a test.
const proctoringOptions = {
trackingOptions: {
audio: true,
numHumans: true,
tabSwitch: true,
// ... see full list below
}
}
| Option | Type | Default | Description |
|---|---|---|---|
audio | bool | true | Detect sound above a minimum threshold. Learn more |
numHumans | bool | true | Detect zero or multiple faces in the camera feed. Learn more |
tabSwitch | bool | true | Detect when the candidate switches to another tab or window. Learn more |
captureSwitchedTab | bool | true | When tabSwitch is on, take a screenshot of what the candidate switched to. The candidate is asked to share their entire screen at the start. Set to false to skip the screen-share prompt. Learn more |
photosAtRandom | bool | true | Capture photos of the candidate at random intervals. If testDuration is provided, captures are distributed evenly across the test duration. |
numPhotosAtRandom | int | 50 | Number of random photos to capture (max 100). SDK 4.x defaults to 25. |
preventMultipleMonitors | bool | false | Block the test while a second monitor, TV or projector is connected. Without it, monitors are not tracked at all. |
detectSuspiciousObjects | bool | false | Flag a mobile phone in the camera view. Learn more |
recordSession | bool | false | Record what the candidate does on your page for playback. Learn more. Costs extra |
recordTestTaker | bool | false | Record a continuous camera and microphone video of the candidate. Learn more. Costs extra |
showCamPreview | bool | false | Show the candidate a small live preview of their camera during the test. It does not affect what is recorded or detected. |
testTakerPhoto | bool | false | Capture a photo of the candidate at the start of the test. |
forceFullScreen | bool | false | Require the candidate to take the test in full-screen mode. Requires testContainerId to be set. |
forceDesktop | bool | false | Require the candidate to use a desktop or laptop. Phones and tablets are blocked; SDK 5.0 also fires error 4001. |
auxiliaryDevice | bool | false | Require the candidate to pair their phone for 360-degree proctoring. Learn more. Costs extra |
idCardVerification | object | all checks off | Verify candidate identity against a photo ID. Learn more. Costs extra |
multiSessionAttempt | bool | false | Detect when the same test attempt is opened from another device, browser, tab or IP address. Learn more |
impersonation | bool | false | Compare random photos with the initial candidate photo to detect if a different person is taking the test. Turns on testTakerPhoto and photosAtRandom. Learn more. Costs extra |
disableCopyPaste | bool | false | Block copy (Ctrl+C / Cmd+C) and paste (Ctrl+V / Cmd+V) keyboard shortcuts during the test. |
detectMultipleScreens | bool | false | Deprecated. In SDK 5.0 it is an alias for preventMultipleMonitors: passing true blocks the test while a second monitor is connected. In 4.x, true only logs it. Use preventMultipleMonitors instead. |
General Options
These options are set at the top level of the proctoringOptions object, alongside trackingOptions.
| Option | Type | Default | Description |
|---|---|---|---|
testDuration | int | not set | Expected test duration in minutes. Used to spread random photos across the test. If you leave it out, random photos are spread over the first 1000 seconds. |
showHowToVideo | bool | true | Show the how-to video before the test begins. |
lookupKey | str | not set | An arbitrary string for grouping test attempts. See Lookup Key. |
userDetails.name | str | not set | Candidate name, displayed in the proctoring report. |
userDetails.email | str | not set | Candidate email, displayed in the proctoring report. |
testContainerId | str | not set | DOM element ID wrapping the test content. Required when forceFullScreen is true. |
informUser.testAdmin | bool | true | Collect evidence for the proctoring report. If you pass informUser, pass both keys. |
informUser.testTaker | bool | true | Show real-time violation notifications to the candidate during the test. |
alertBeforeUnload | bool | true | Ask the browser to confirm before the candidate leaves or reloads the page during the test. |
sessionRecordingSelectorsToMask | array | [] | CSS selectors whose text is masked in the session recording. Learn more |
sessionRecordingSelectorsToBlock | array | [] | CSS selectors left out of the session recording. Learn more |
Options for the auxiliary device (auxDeviceContainerId and auxDevicePath) are on the Auxiliary Device page.
Advanced Options
You rarely need these.
| Option | Type | Default | Description |
|---|---|---|---|
brand | str | AutoProctor | Product name used in some candidate-facing messages. |
capturePhotoModalTitle | str | built-in text | Title of the dialog that takes the candidate's photo. |
capturePhotoModalText | str | built-in text | Body text of that dialog. |
grantMediaAccessUrl | str | AutoProctor's help page | Link shown to candidates who have blocked camera or microphone access. |
assetsBaseUrl | str | AutoProctor's CDN | Load the SDK's models and recording libraries from your own server (SDK 5.0). See Self-hosting assets. |
The candidate-facing text is in English. The options above are the only text you can override.
Lookup Key
AutoProctor identifies test attempts by testAttemptId, not by any test or quiz identifier from your system. If you want to group and filter test attempts later — for example, by quiz ID or course ID — pass a lookupKey when initializing the test. It can be any string meaningful to your application.