All OpenTok applications are composed of two parts:
Client SDKs are also available for iOS and Android. All OpenTok client SDKs can interact with one another. You can learn more about the basics of OpenTok clients, servers, sessions and more on our OpenTok Basics page.
The best way to learn how to use the OpenTok.js library is to follow our Basic Video Chat tutorial for web:View tutorial
Once you understand the basics of building with OpenTok.js, you can get more detailed information and learn how to customize your application with our Developer Guides. To investigate specific API classes and methods, you can review the OpenTok.js Reference.
Add the following script tag to the web page:
The current version of the OpenTok.js library interacts with the following OpenTok client libraries:
The OpenTok.js library is currently supported in:
You include the OpenTok.js library in your web page using a
The OpenTok.js version number consists of three parts:
For example, v2.4.0 is major version 2, minor version 4 (of major version 2), and revision 0 (of v2.4). As revision versions are released, changes are included in the root minor revision. For example, when v2.2.3 is released, its changes are included in v2.2.
To reference a specific revision, you can include the complete version number (such as "v2.4.0")
src attribute. However, we recommend that you specify only the major version
number. TokBox officially supports the current version of the library. If you are loading an older
version, we ask that you upgrade to take advantage of the latest bug fixes and features in the
Important: Always use the libraries we provide unmodified. This ensures that you use the latest up-to-date, tested code. TokBox does not support the use of modified libraries.