Giter Club home page Giter Club logo

cordova-plugin-opentokjs-example's Introduction

cordova-plugin-opentokjs-example

This is an example application which shows the use of the cordova-plugin-opentokjs plugin for Cordova with the use of the standard Ionic tabs starter project.

Setup

You will need an OpenTok API Key, Session ID, and Token. If you do not already have these, you can get these values from the TokBox Dashboard.

  1. Clone the repository.

  2. Download NPM dependencies npm install.

  3. Download Bower dependencies bower install.

  4. Install the plugin: ionic plugin add cordova-plugin-opentokjs --save --shrinkwrap

  5. Rename the www/js/app.constant.js.sample file to www/js/app.constant.js.

  6. Insert your own values for your OpenTok API Key, Session ID, and a Token into www/js/app.constant.js.

NOTE: Running ionic serve does not include the necessary opentok.js from the plugin. Therefore this command doesn't work to test the application. Use ionic build browser and gulp browser:serve instead.

Running the application on a specific platform

Before you are able to build for a specific platform, you need to add this platform to your project:

  • ionic platform add android

  • ionic platform add ios -> Note: Adding platform IOS can only be performed on a Mac OSX

  • ionic platform add browser -> Note: Still in BETA

After adding the correct platform(s), you can run the application using the Ionic CLI. Examples:

  • ionic emulate android -> Runs project within Android emulator. Only recommended for AVDs created with x86 emulation (Intel HAXM). Also, be aware that most AVDs are setup with virtualized camera's and microphones by default. This can be configured when creating a new AVD.

  • ionic run android --device -> Runs project on an Android device.

  • ionic build browser -> Builds project for a browser and loads all cordova plugins. To be able to serve the browser build, run gulp browser:serve. Note that the gulp browser:serve has live-reload. When you change anything on the project just re-run ionic build browser and you are good to go.

  • ionic run ios --device -> Runs project on an iOS device. Make sure you have ios-deploy installed.

  • ionic run ios --simulator -> Runs project on the iOS Simulator. Make sure you have ios-sim installed. Also, be aware that the iOS Simulator does not have access to your machine's camera or microphone.

Known Issues

Please note the following known issues:

Author

Special thanks

License

MIT :)

cordova-plugin-opentokjs-example's People

Contributors

mark-veenstra avatar

Watchers

James Cloos avatar Jason Bourbeau avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.