Skip to main content
Welcome to the Proview SDK. Follow these steps to embed the latest SDK in your application.

Prerequisites

  • Talview-provisioned tenant + project DSN. You get a separate DSN per environment (dev / staging / prod).
  • Ability to add a script tag and a small bootstrap snippet wherever proctoring needs to run.

Content Security Policy (CSP)

If your application enforces CSP headers, allow the domains and inline resources required by the SDK:

Installation

Script tag

Place the loader as the last script on any page that needs Proview SDK. The loader attaches itself globally as window.Proview.

Initialize

Define window.proviewOnLoad before loading the script. The SDK fires this callback when it is ready. Call Proview.init inside the callback to bootstrap the SDK. Pass a modules array of factory calls to declare which modules to load. Each factory is a function exposed on the Proview namespace. The dsn and credential declared at the top level are inherited by all modules — you do not need to repeat them per module. Omit modules entirely and the session module is loaded by default. Pass a modules array and only the modules you list are loaded — Proview.session() included, which must then be named explicitly.

Choosing an auth strategy

credential takes a strategy from the Proview.auth namespace. The auth module loads automatically — you do not declare it in modules. See Authentication for each strategy in full.

Interfaces

The Proview SDK is composed of the following modules. Each is declared in the modules array using its factory function:
  • Proview.form() – enables dynamic form loading and submission with integrated authentication. See the Form guide for details.
  • Proview.scheduler() – manages interview scheduling, RSVP, and availability with integrated authentication. See the Scheduler guide for complete API reference.
  • Proview.session() – enables remote proctoring with session management, media capture, and real-time monitoring. Candidate-facing. See the Proctoring guide for complete setup instructions.
  • Proview.playback() – enables embedding and playback of recorded sessions. Interviewer/reviewer-facing. See the Playback guide for integration details.

Global Error Handling

Register a global error hook before calling Proview.init() so that initialization failures are captured too. The handler receives a single ProviewError object.
See the Error Reference for every code, what triggers it, and how to handle each one.
Proview.onError supports a single handler — registering a new one replaces the previous. If several parts of your app need to react to SDK errors, fan out from inside one handler.

Next steps

  • Authentication — credential strategies and which module uses which
  • Error Reference — every error code, its meaning, and how to handle it
  • Troubleshooting — diagnose loading, initialization, and auth failures
  • Best Practices — loading, credentials, and error-handling guidance that applies to every module