1. JS
  2. AS
  3. iOS

JavaScript API: Tutorials and Sample Code

Basic Functionality

Hello World Tutorial

Shows you how to connect to a session, publish a stream from your webcam, and view other audio-video streams in the session … all in just a few lines of code.

Basic Tutorial

Expands on the Hello World tutorial, showing how to position OpenTok videos in the HTML DOM.

Advanced Tutorials

Controlling audio

Shows how to enable echo suppression, how to mute the microphone and how to mute sound output from streams.

Managing cameras and microphones

Shows how to use JavaScript to have the user select the camera and microphone used in an OpenTok session.

Moderation and signaling

Shows how to moderate participants in an OpenTok session, and how to have a participant send a signal to all other participants.

Resizing videos

Shows how you can control the size of the OpenTok video display, just as you would any other HTML element.

Audio-only and video only

Shows how to publish streams and subscribe to streams in audio-only and video-only mode.

Passing user information

Shows how to set and retrieve metadata for each client connecting to a session.

Recording stand-alone archives

Shows how to record an audio-video stream outside of an OpenTok session and then play it back in a session.

IRC Live Chat

Have a quick question? Chat with other developers.  Join chat

TokBox staff may not be online right now. To reach them during off-hours, visit the forums.