close search

Back to Tutorials

Web Tutorials — Overview

Basic Video Chat Tutorial

In this topic, you will learn how to build a basic one-to-one video application for the web.

Want to learn how to build for mobile?

Start for iOS Start for Android

20 minutes

estimated tutorial time


OpenTok experience level

Step 1: Set up a server for API calls

The first step shows you how to set up the web services required to use the tutorial app.

Step 2: Set up the application

In this step you will set up the basic web app that demonstrates a video chat application.

Step 3: Starting an OpenTok session

An OpenTok session connects different clients letting them share audio-video streams and send messages.

Step 4: Connecting to the session

You must connect to a session before publishing or subscribing to audio-video streams.

Step 5: Publishing a stream

Shows how to publish your audio-video stream to an OpenTok session.

Step 6: Subscribing to a stream

Once a stream is published, other clients can subscribe to it (and view it).