Skip to content

opentok/opentok-linux-sdk-samples

Repository files navigation

OpenTok Linux SDK Samples

Tokbox is now known as Vonage

Build Status

This repository is meant to provide some examples for you to better understand the features of the OpenTok Linux SDK.

The sample applications here can be used either in regular desktop environments or in any tiny single-board computer such as the Raspberry Pi.

The sample applications are meant to be used with the latest version of the OpenTok Linux SDK. Feel free to copy and modify the source code herein for your own projects.

Please consider sharing your modifications with us, especially if they might benefit other developers using the OpenTok Linux SDK. See the License for more information.

What's inside

This sample application shows you how to connect to an OpenTok session, publish a stream, and subscribe to a stream. It implements a simple video call application with several clients. If you're just getting started with OpenTok, this is where you should start.

This sample application shows how to publish an audio-video stream to a session. This sample application might cover a suitable use case where you just want to publish an audio-video stream to an OpenTok session, without subscribing to streams from other clients connected to the session. Examples are a video surveillance equipment application, a smart bell, etc.

This sample application shows how to use the signaling API. This sample listens for signals and echoes back whatever is sent to it.

This sample application shows how to use the Configurable TURN servers API. This sample uses user-provided TURN servers for the session.

This sample application shows how to use the audio device API to implement a custom audio capturer. As with the custom video driver, most applications can use the default audio capturer. If you want to add custom audio manipulation, look here.

This sample application shows how to use both a custom video capturer and renderer. While most applications will work fine with the default capturer and renderer, so you won't need to implement a custom video driver. However, if you need to add custom effects, then this is where you should start.

This sample application shows how to build a simple video capturer which captures video frames from a live RTSP video stream. A publisher using this video capturer pipes the RTSP stream into a OpenTok session.

This sample application shows how to use a video capturer being used by a publisher in your application. It is important to note that a custom video capturer always belongs to a given publisher. The video capturer captures video frames from the default video camera, removes its background and provides them to the SDK so they are sent to participants in the session.

Development and Contributing

Interested in contributing? We ❤️ pull requests! See the Contribution guidelines.

Getting Help

We love to hear from you so if you have questions, comments or find a bug in the project, let us know! You can either:

Further Reading