Add live video streaming to your Cordova Application
npm install cordova-plugin-opentok##### Disclaimer: This plugin is based on the Cordova OpenTok Plugin. Please keep in mind that this is an OpenTok Labs project which means that it's not officially supported by TokBox.
1. Clone this repo to get the source code for the OpenTok Cordova plugin
2. To install the OpenTok Cordova plugin, run the following command in the root of your project:
```
cordova plugin add cordova-plugin-opentok `
3. To remove OpenTok Cordova plugin 3.2.0 and above, use the following command: `
cordova plugin remove cordova-plugin-opentok`
4. To remove the old OpenTok Cordova plugin, use the following command: `
cordova plugin remove com.tokbox.cordova.opentok
To use the opentok library, make sure you include opentok.js file in your HTML document.
All JavaScript code should be written in onDeviceReady function in /js/index.js because it is executed after all dependencies has loaded.```
onDeviceReady: function() {
// Do Your Stuff Here!
}
Interested in contributing? We love pull requests! See the
Contribution guidelines.