Skip to content
This repository has been archived by the owner on Aug 23, 2019. It is now read-only.
/ webrtc-demo Public archive

This repo will no longer be updated. GoInstant will be discontinued as of August 31, 2014. Read our blog for more details.

License

Notifications You must be signed in to change notification settings

goinstant/webrtc-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoInstant Audio and Video Demo

This is a demo application using GoInstant's GoRTC library and the WebRTC Widget to create an audio and video web conferencing application.

demo screenshot

View the live demo of this code here.

Demo Setup

Initial Setup

1. Install and configure the Heroku toolbelt
2. Create a heroku app
heroku apps:create YOUR_WEBRTC_DEMO_APP
3. Add the GoInstant and RedisCould Add-on to the app
heroku addons:add goinstant
heroku addons:add rediscloud:25

Environment Setup

To run the WebRTC Demo locally or on heroku some setup is required.

1. Install the heroku-config plugin.
heroku plugins:install git://github.com/ddollar/heroku-config.git
2. Setup your environment

Required Set the express session secret.

heroku config:set SECRET=YOUR_SECRET

Optional The following are additional config vars that can be set using:

heroku config:set VAR_NAME=VAR_VALUE

If you are unsure about what these vars do, just leave them as their defaults.

Config vars with their default values

FORCE_SSL=false
PORT=3000
REDIS_URL=http://localhost:6379
NODE_ENV=local
PLATFORM_HOST=https://cdn.goinstant.net
PLATFORM_PATH=/v1/platform.min.js
GOINSTANT_ISS=localhost/auth

Config vars that are automatically configured via the goinstant heroku addon:

GOINSTANT_CONNECT_URL
GOINSTANT_APP_SECRET

Running the Demo

You can choose to run the demo locally or on Heroku.

Run Locally

Prerequisites

You must have node js v0.10+ installed and redis 2.6+ server to run the demo locally.

Setup

1. Execute npm install from the repo root
2. Start redis
redis-server
3. Pull the heroku config (This is required for foreman to access the config variables).
heroku config:pull
4. Execute foreman start from the repo root to start the application

Run on Heroku

Before running the demo on Heroku set the NODE_ENV to 'heroku':

heroku config:set NODE_ENV=heroku
Push Master

Normal or First Push

git push heroku master

Push Branch

To push your branch your working on

git push heroku branchname:master

Push Tag

To push a existing tag, note that this will not work unless you have already initialized the remote repo.

git push heroku v1.0.0^{}:master

Adding Heroku Repos

heroku git:remote -a <prod repo name>
heroku git:remote -a <stg repo name>

Powered by GoInstant

GoInstant is an API for integrating realtime, multi-user functionality into your app. You can check it out and sign up for free.

Legal

© 2014 GoInstant Inc., a salesforce.com company

Licensed under the 3-clause BSD license, see LICENSE file for details.

About

This repo will no longer be updated. GoInstant will be discontinued as of August 31, 2014. Read our blog for more details.

Resources

License

Stars

Watchers

Forks

Packages