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.

That’s all the code you need to use the OpenTok jQuery plugin to publish and subscribe to audio-video streams in an OpenTok session.

However, this is the simplest example. The OpenTok jQuery plugin lets you customize the layout and interactions.

The OpenTok jQuery plugin has one method, openTok(). All customization is done in the options object you pass as a parameter to the openTok method. There are a number of settings available in this options object. For example you can use the default wrapper containers for OpenTok streams, and define styles using CSS. Or you can edit the actual HTML used by these containers.

For details, see the docs and basictutorial subdirectories of the OpenTok jQuery plugin project: