<commit_before>Cordova Plugin for Opentok iOS SDK
===

Weave video chat into your web ( and now mobile! ) application.

## Step 1. Install / create Cordova app
<http://phonegap.com/start/>
> Make sure 'use automatic reference counting' is **not** selected when you create the project.

## Step 2. Install Opentok Framework
1. Clone from <https://github.com/opentok/opentok-ios-sdk>

2. Drag the Opentok.framework directory into your XCODE *Frameworks* folder
![framework](http://songz.github.com/phonegap-plugin-opentok/images/framework.png)

3. click on your project in **File Navigator** and select **Build Settings**  

> Make sure **Standard (armv7)** is selected for **Architectures**  
> Make sure **armv7** is the ONLY option selected for **Valid Architectures**  
![architecture](http://songz.github.com/phonegap-plugin-opentok/images/arch.png)

## Step 3. Install Opentok Phonegap Plugin
1. Clone from <https://github.com/songz/phonegap-plugin-opentok>

2. Copy `OpentokPlugin.h`, `OpentokPlugin.m`, `OpentokStreamInfo.h`, and `OpentokStreamInfo.h` into your **Classes** folder
![ios](http://songz.github.com/phonegap-plugin-opentok/images/ioslib.png)

3. Copy `Opentok.iOS.js` into your `www` folder
![js](http://songz.github.com/phonegap-plugin-opentok/images/jslib.png)

### Done!

---

## Getting Started:
All your editing will be done in your www folder.

To use the opentok library, make sure you include **Opentok.iOS.js** file in your HTML document.  
` <script type="text/javascript" charset="utf-8" src="Opentok.iOS.js"></script>`

For smoother experience with video, you must prevent dragging. Uncomment the following lines in the HTML:

    function preventBehavior(e) 
    { 
      e.preventDefault(); 
    };
    document.addEventListener("touchmove", preventBehavior, false);

All code should be written in `onDeviceReady` function because it is executed after all the devices/libraries DOM has loaded.

	function onDeviceReady()
	{
		// do your thing!
	}

---

<commit_msg>readme update<commit_after>Cordova Plugin for Opentok iOS SDK
===

Weave video chat into your web ( and now mobile! ) application.

## Step 1. Install / create Cordova app
<http://phonegap.com/start/>
> Make sure 'use automatic reference counting' is **not** selected when you create the project.

## Step 2. Install Opentok Framework
1. Clone from <https://github.com/opentok/opentok-ios-sdk>

2. Drag the Opentok.framework directory into your XCODE *Frameworks* folder
![framework](http://songz.github.com/phonegap-plugin-opentok/images/framework.png)

3. click on your project in **File Navigator** and select **Build Settings**  

> Make sure **Standard (armv7)** is selected for **Architectures**  
> Make sure **armv7** is the ONLY option selected for **Valid Architectures**  
![architecture](http://songz.github.com/phonegap-plugin-opentok/images/arch.png)

## Step 3. Install Opentok Phonegap Plugin
1. Clone from <https://github.com/songz/phonegap-plugin-opentok>

2. Copy `OpentokPlugin.h`, `OpentokPlugin.m`, `OpentokStreamInfo.h`, and `OpentokStreamInfo.h` into your **Classes** folder
![ios](http://songz.github.com/phonegap-plugin-opentok/images/ioslib.png)

3. Copy `Opentok.iOS.js` into your `www` folder
![js](http://songz.github.com/phonegap-plugin-opentok/images/jslib.png)

### Done!

---

## Getting Started:
All your editing will be done in your www folder.

To use the opentok library, make sure you include **Opentok.iOS.js** file in your HTML document.  
` <script type="text/javascript" charset="utf-8" src="Opentok.iOS.js"></script>`

For smoother experience with video, you should prevent dragging. Uncomment the following lines in the HTML:

    function preventBehavior(e) 
    { 
      e.preventDefault(); 
    };
    document.addEventListener("touchmove", preventBehavior, false);

All code should be written in `onDeviceReady` function because it is executed after all the devices/libraries DOM has loaded.

	function onDeviceReady()
	{
		// do your thing!
	}

---

## Example:

working on it... 

{'fraction_non_alphanumeric': 0.12807148175725985, 'fraction_numerical': 0.005956813104988831, 'mean_word_length': 4.302631578947368, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 19, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1934437', 'n_tokens_mistral': 1318, 'n_tokens_neox': 1248, 'n_words': 399}