Opentok app with screen sharing using the WebRTC screen sharing and Archiving features. You can check it out running at meet.tokbox.com.
This project deploys to meet.tokbox.com. It is pointing to the OpenTok nightly environment which is experimental and likely to break. It also includes experimental features. This was originally a fork of aullman/opentok-meet but is now diverged and is not updated with changes made there.
If you push to the master branch of this repo Travis and BrowserStack tests will run and when they pass meet.tokbox.com will be updated.
- node.js (version 8)
- redis (Recommended to install via homebrew on mac: see instructions)
-
Copy the contents of
config.json.sample
intoconfig.json
and add your credentials. :warning: Note: the default config points to VAPID. If you intend to use a production api key you must changeapiUrl
andopentokJs
to point to production endpoints. -
- You can optionally setup google auth with this project if you provide a client Id and client secret.
-
Login to Google Cloud Platform and go to https://console.cloud.google.com/apis/credentials
-
From here go to Credentials --> "Create Credentials" --> OAuth Client ID
-
(a) Application Type --> Web Application (b) Name --> eg. Web App 3 (c) Authorized redirect URIs --> Add URI --> "http://localhost:3000/google/callback" ---> click on "CREATE"
-
You will now get your client Id and secret that you can replace in the config file.
-
- You can optionally setup google auth with this project if you provide a client Id and client secret.
-
Ensure redis is running (e.g.
redis-server
on mac) -
Install npm dependencies and build the web project
npm i
npm run build
- Run the server:
npm start
You should now see the app running at http://localhost:3000/
Electron is an optional dependency because it requires Cairo on your system and isn't necessary for the rest of opentok-meet. If you run into problems below, try this:
brew update
brew install cairo
npm install
During development, the electron version can be quickly started by running
npm run electron
And a dmg for installation can be created with
npm run electron-build
To create a signed build (so the user is not warned when starting the app), you will need an appropriate certificate available on your machine (getting one is beyond the scope of this guide). If the certificate is available, it can be used by adding -- --osx-sign
to the command above.