Opentok app with screen sharing using the WebRTC screen sharing and Archiving features. You can check it out running at meet.tokbox.com.
There are a few different mobile applications that have been built to interoperate with this application.
- meet-swift An iOS app built in Swift.
- opentok-meet-android and Android application.
- If you haven't already, sign up for OpenTok.
- Clone this repo
cp config.json.sample config.json
- Add your OpenTok apikey and secret to config.json
- Create your screensharing extensions by following the instructions at https://github.com/opentok/screensharing-extensions and put your Chrome Extension ID in config.json.
- Run redis
npm install
- If you want to use SSL you will need to generate a key and make sure the server.key and server.crt files are in the main directory. You can find instructions for generating a self-signed certificate here. SSL is recommended so that screen-sharing works and so that you don't have to keep clicking the allow button to allow access to your camera. If you still don't want to use SSL then just update app.js to use
http.createServer
instead ofhttps.createServer
. npm start
- Go to https://localhost:3000
- If you haven't already, sign up for OpenTok.
- Create a Heroku instance
- Clone this repo
- In the repo run
heroku git:remote -a <instance name>
to add the remote to github. - Add redistogo
heroku addons:add redistogo
- Add your OpenTok API Key and Secret and your Chrome Screensharing Extension ID to the environment
heroku config:set HEROKU=true OT_API_KEY=<YOUR_API_KEY> OT_API_SECRET=<YOUR_SECRET> CHROME_EXTENSION_ID=<YOUR_EXTENSION_ID>
git push heroku master
- Visit your heroku URL
##Running Tests
You can run the unit tests using npm test
. This command is setup to work correctly in the Travis CI system as well as when running locally. But if you want it to run locally you need to setup a few things. You will need to sign up for Sauce Labs. This service offers free options for Open Source. You will need the following environment variables set.
export SAUCE_USERNAME=<YOUR_SAUCE_USERNAME>
export SAUCE_ACCESS_KEY=<YOUR_SAUCE_KEY>
export TRAVIS_JOB_NUMBER=<ANYTHING>
By default npm test
will run the tests in Chrome Stable. If you want to run in different environments you can set the BROWSER
and BVER
environment variables. eg. export BROWSER=ie BVER=11;npm test
. Supported combinations are:
- ie (10,11)
- chrome (stable, beta, unstable)
- firefox (stable, beta, unstable)
These tests are also run in the cloud with every commit and every pull request using Travis-CI and Sauce Labs.