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

Prerequisites

  • Talview-provisioned tenant + project DSN (customer success or Talview Sales can help).
  • Modern browser with WebRTC support and HTTPS hosting for your delivery app.
  • 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:
Content-Security-Policy:
  script-src 'unsafe-inline' https://*.tlv.io;
  style-src 'unsafe-inline';
  connect-src 'self' https://*.googleapis.com https://*.tlv.com wss://*.tlv.com https://*.talview.com wss://*.talview.com;
  img-src 'self' https://*.tlv.io;

Installation

Script tag

Place the loader as the last script on any page that needs Talview SDK. The loader attaches itself globally as window.TalviewSDK.
<!-- load the hosted bundle -->
<script
  src="https://sdk.tlv.cx"
  async
  crossorigin="anonymous"
></script>

Interfaces

The Talview SDK is composed of the following modules:
  • sessionPlayback – exposes the Talview session playback factory on TalviewSDK.sessionPlayback after the loader initializes. See the Session Playback setup guide for end-to-end instructions.

Global Error Handling

Register a global error hook after the loader runs to observe failures from any Talview module:
TalviewSDK.onError((module, error) => {
  if (module === 'sessionPlayback') {
    console.error('Session playback failed', error);
  }
});