OpenTok JavaScript client library 2.2 preview

At the WebRTC Expo on November 18, we announced some new features. Since then, a number of developers have asked about how to take advantage of them. In response, we are providing a preview version of the OpenTok JavaScript client library: version 2.2. This includes an advanced look at these new features:

  • Archiving—You can record audio-video streams in a session and download the recording as an MP4 file (with H.264 video and AAC audio).
  • Dynamic frame rate control—This feature lets you reduce bandwidth usage of a Subscriber’s video stream. This reduces CPU usage and the network bandwidth consumed, and it lets you subscribe to more streams simultaneously.

These are just a couple of the new features to be included in version 2.2.

2 Comments Read More

Getting started with the OpenTok iOS SDK

The OpenTok iOS SDK lets you use OpenTok video sessions in apps you build for iPad, iPhone, and iPod touch devices. This means you can use OpenTok video sessions that connect iOS users with each other and with web clients.

The OpenTok iOS SDK uses the same platform architecture and concepts that are used in the OpenTok JavaScript library and the OpenTok ActionScript library. However, you code iOS apps in Objective-C.

This article will explain the most basic parts of the OpenTok iOS SDK. It will also show how the functionality and concepts used in the OpenTok iOS SDK are shared in the OpenTok JavaScript and ActionScript library.

0 Comments Read More

Building the HTML client for thev v OpenTok TokShow app

Building the TokShow app gave us another great opportunity to test our API in a real-world app. And, sure enough, we discovered some additions for the OpenTok API.

Not all clients using the app and participating in the session have the same audio-video capabilities. Some clients use older versions of Flash Player or hardware that does not support acoustic echo cancellation. The acoustic echo cancellation feature was added in OpenTok v0.91.18 (in June), and it works great. It pretty much eliminates acoustic audio feedback. We wanted to build an app that allowed the administrator to see if a potential participant (fan) had acoustic echo cancellation supported on their machine. However, the OpenTok API did not provide that information … so we added it. And the new API includes other information on the quality of each stream in the session. In addition to acoustic echo cancellation support, the API provides other information about the publisher of a stream, including the upstream bandwidth, whether the microphone and camera are enabled, and whether H.264 video is supported. These enhancements were added in the November 10 release of the OpenTok API (v0.91.35).

7 Comments Read More

Adding metadata on connections

You can now attach metadata for each client that connects to a session. For example, you can add information about the connecting user. When a client connects to the session, all existing clients connected to the session can access the metadata for the new connection.

You add this metadata by passing it into the generate_token() method of the OpenTok server-side library. The metadata is then securely embedded in the token string. Here’s an example, using the OpenTok PHP library:

2 Comments Read More

OpenTok jQuery plugin available

We have designed the OpenTok JavaScript library to be easy for all JavaScript developers to use. But the jQuery OpenTok plugin, created by jQuery developer Jose Torres, could make it even easier to use OpenTok audio-video sessions in your web-based apps.

The plugin is hosted at github.com:

https://github.com/jmtorres/jquery-opentok

Using the jQuery plugin, you can fully integrate OpenTok into your jQuery-based apps.

To use the plug-in, include the OpenTok, jQuery, and jquery.opentok scripts in your HTML page:

2 Comments Read More