Web SDK Self-serve API

JavaScript video call SDK for the browser

Add our browser script to your page, init it with your App Key and start a call. No backend needed, no plugins, no downloads for your users. Server tokens are optional production hardening.

Quick mode: add your App Key, make a call in 5 minutes

No backend needed: add your App Key in the app and start calling. A server is optional, for production hardening.

  1. Get your App Key. In the console, open Projects → Quick mode and add your app's website address (origin). Your App Key is shown there.
  2. Install the package from npm (the console download is only a fallback).
    index.html
    <!-- titli-call.js from npm (titli-video-sdk), served by jsDelivr; it defines TitliVideo. With a bundler: npm i titli-video-sdk -->
    <script src="https://cdn.jsdelivr.net/npm/titli-video-sdk@0.2.0/titli-call.js"></script>
    <div id="stage"></div>
  3. Init with the App Key, then start or join a call. That is all: no server, no tokens.
    app.js
    // 1. Once, on page load: your App Key and your own user id
    TitliVideo.init({ appKey: 'tak_…', userId: 'user-42', userName: 'Asha' });
    
    // 2. Start a video call into a container on your page
    const call = await TitliVideo.startCall({ type: 'video', container: '#stage' });
    // share call.callId with the other person
    
    // 3. In the other browser
    await TitliVideo.joinCall(callId, { container: '#stage' });

The App Key is publishable, not a secret: it can only reach the app-facing routes, it is bound to your package name, bundle ID or website, and spend and usage caps fence it. The binding is a deterrent, not a lock (a determined attacker can copy an app's identity), so the caps are what limit the damage. For strict control, add server tokens (production hardening below). Quick mode: bindings, caps and error codes · Read the Client API (Quick mode).

Production hardening (optional): server tokens

You do not need a server to start: Quick mode works with the App Key alone. Add a server when you want strict control over every call (who joins which call, for how long, in which role): keep the project key on your server and mint a short-lived join token per person there. The app uses the same SDK and hands it a token instead of the App Key. Both ways can run side by side.

With a server token, the page can also join with the open-source WebRTC client directly:

call.html
<script src="https://cdn.jsdelivr.net/npm/livekit-client@2.15.6/dist/livekit-client.umd.js"></script>
<script type="module">
  const { Room, RoomEvent, Track } = LivekitClient;
  // Production hardening (optional): token + livekit_url minted on your server.
  // Quick mode needs no server: TitliVideo.init({ appKey }) + startCall (see the web SDK page).
  const room = new Room({ adaptiveStream: true, dynacast: true });
  room.on(RoomEvent.TrackSubscribed, (track) => {
    document.querySelector('#stage').append(track.attach());
  });
  await room.connect(livekitUrl, token);
  await room.localParticipant.setMicrophoneEnabled(true);
  await room.localParticipant.setCameraEnabled(true);
</script>

What you get

  • Works everywhere WebRTC works: desktop and mobile browsers.
  • Adaptive quality with adaptive streaming and dynacast switched on.
  • The same calls as mobile: a browser user and a Flutter user can be in one call.
  • Permissions are the browser’s: it asks for the microphone and camera when your page switches them on. An audio call can publish the microphone only.
  • End of call: the end event gives the reason (you left, the call was ended, you were removed, the connection was lost).

The server-token example uses the open-source client library directly.

FAQ

Do I need a backend to use Titli Video SDK?

No. Add your App Key in the app (Flutter, Android, iOS, React Native or web) and make a call in about 5 minutes. A server is optional: add one for production hardening, when you want server-minted tokens and strict control over every call.

Is there an npm package?

Yes, on npm. In Quick mode your page loads its browser helper, through your bundler or from a public CDN without one, and calls with your App Key. The same package holds a Node.js client for your server. With server tokens (optional), the browser can also join with the standard open-source LiveKit web client and the token your server gets from our API. The code on this page shows both.

Which browsers work?

Current versions of Chrome, Edge, Firefox and Safari, on desktop and mobile.

Can guests join from a link without an account?

Yes. In Quick mode the guest’s page inits with your App Key and any guest id you choose, then joins the call by its id. With server tokens, your server mints the guest a token. Many apps send a one-time link to a guest.

What happens when a server token expires?

This applies to server tokens only (Quick mode refreshes on its own). A token can be used to join for 10 minutes by default (you can set anything from 30 seconds to one hour when you mint it). After that the join is refused, so mint the token right before the page joins. Expiry does not cut a call that is already running.

Free SDK. Pay only for the minutes you use.

Create a free account: it starts with ₹100 welcome credit, about 250 minutes of 1:1 video, so your first call needs no recharge. Questions? Message us on WhatsApp and a person replies.

Start free