A simple guide of starting use EasyRTC

Working on a Loongson(www.loongson.cn) PC, goal is to make it a Meeting Terminal. Because its CPU is MIPS arch, there could be lots of unexpected problems, so the first thought hit us is WebRTC.

This post is the first step to research into this topic.

It’s expected to have 3 billion WebRTC users by 2016. Believe or not, WebRTC is coming into your sight.

EasyRTC is a full-stack open source WebRTC toolkit suitable for building highly secure, enterprise WebRTC applications.

Priologic’s EasyRTC incorporates an EasyRTC server install and client API, and working, HTML5 and JavaScript, application source code.

EasyRTC is completely free and open source under a BSD 2 license. No usage costs or other hidden fees. So feel free to use it.

Here is a simple guide of installing EasyRTC on a Ubuntu:

1. Download source code
Suppose you are using source directory as /opt/workspace

git clone https://github.com/priologic/easyrtc /opt/workspace/easyrtc

2. Copy all the files in server_example/ to /opt/web/easyrtc.

Create folder hold the EasyRTC application

sudo mkdir /opt/web
sudo mkdir /opt/web/easyrtc

Copy files

sudo cp -r /opt/workspace/easyrtc/server_example/* /var/nodes/easyrtc

3. Security Considerations (not going into specifics)

Create user for node.js (or use existing web user), suppose you are using www:www, you can chown the nodes folder to be owned by this user

sudo chown -R www:www /opt/web/nodes

4. Install Node.js

curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install -y nodejs

See https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager

5. Run npm install from the installation folder to install dependent packages (including EasyRTC)

cd /var/nodes/easyrtc
sudo npm install

6. Start EasyRTC by running node server.js

node server.js

7. Browse the examples using a WebRTC enabled browser. (defaults to port 8080)

Leave a comment

Your email address will not be published. Required fields are marked *