opentok-react
Advanced tools
Comparing version 0.2.3 to 0.2.4
{ | ||
"name": "opentok-react", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "React component for OpenTok.js", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
# opentok-react | ||
## Contents | ||
- [Pre-Requisites](#pre-requisites) | ||
- [Install](#install) | ||
- [Example App](#example-app) | ||
- [Usage](#usage) | ||
- [Importing opentok-react](#importing-opentok-react) | ||
- [createSession Helper](#createsession-helper) | ||
- [OTPublisher Component](#otpublisher-component) | ||
- [OTSubscriber Component](#otsubscriber-component) | ||
- [A Complete Example](#a-complete-example) | ||
- [Custom Build](#custom-build) | ||
- [Tests](#tests) | ||
## Pre-Requisites | ||
1. NodeJS | ||
1. Register a TokBox account: https://tokbox.com/account/ | ||
1. Register a TokBox account: https://tokbox.com/account/user/signup | ||
@@ -56,2 +70,12 @@ ## Install | ||
Or if you need to use CommonJS modules: | ||
```js | ||
var otReact = require('opentok-react'); | ||
var createSession = otReact.createSession; | ||
var OTPublisher = otReact.OTPublisher; | ||
var OTSubscriber = otReact.OTSubscriber; | ||
``` | ||
### createSession Helper | ||
@@ -58,0 +82,0 @@ |
21786
264