Suggestions

close search

Sample Apps

Explore sample code on GitHub to jumpstart development and build your understanding of OpenTok. Feel free to copy and modify the source code in these for your own projects.

These samples are hosted on GitHub

We use GitHub repositories to make it easy to explore, copy, and modify our sample code. If you’re not familiar with how to clone or download a GitHub repo, check out this helpful article to learn how in a few minutes.

Basic client samples

These repositories provide some examples and walkthroughs of different features and use-cases you can build with the OpenTok client SDKs (Web, Android, and iOS).

Web Android
iOS Objective-C iOS Swift
Basic REST Server

Already have a client set up and need a quick server solution? These sample apps show how to use the OpenTok Server SDKs to set up a simple REST service for creating sessions, generating tokens, and carrying out archiving functions using REST calls.

PHP Node
Archiving

These sample apps show how you can use the OpenTok Server SDKs to archive (or record) sessions, list archives that have been created, download and delete the recordings. Also includes a simple client-side implementation.

PHP Java
.NET Node
Ruby Python
Accelerator sample apps + extras

These client-side sample apps include much more functionality, with audio/video chat, user controls, CSS styling, and built-in text chat along with some starter code for screen sharing and archiving.

Web (JS) Web (React)
Android iOS
Simple client-server using web frameworks

These sample apps show how to use popular web frameworks to build your client and server components into a single project. Includes code for creating sessions, generating tokens with those sessions, and then passing those values to a web client that can connect and conduct a group chat.

PHP Java
.NET Node
Ruby Python