#WebRTC Rails
This is a basic aplication I have build to test WebRTC, my main objective is to practice WebRTC. I will slowly improve the aplication, and add more features each time.
##Start Now
To start the project and test is at your own you have to do the following:
- Clone the repo:
git clone [email protected]:XescuGC/webrtc-rails.git
- Install all the gems with
bundle install
- Go to
app/rtc/
and runnpm install
to installsocket.io
- Check to see your IP:
ifconfig
, copy the IP and change the ones inpublic/javascripts/rtc/client_signaling.js
and at the first line change theio.connect('YOUR-IP:2013')
- Open the server
rails server
- Open the NodeJs server
node app/rtc/server.js
- Go to the URL:
localhost:3000
- ENJOY!
##Test it in production
Here you have the link
At the moment it only works between Chrome and Chrome (I'm currently working on the problem)
Now it works on Chrome and Firefox. Maybe there was some bug on the API.
##Objectives
As I said before the main objective is to practice WebRTC but I will list some of the other objectives I have in mind:
- DONE WebRTC between 2 peers
- DONE Clean the webpage of unneeded menus, just the Home page and a page to call
- DONE Add a chat module (with NodeJs, latter can be improved to be with arbitrary data with RTCDataChannel)
- Change the NodeJS server to a native Ruby (EventMachine)
- Control of errors in the Call (on of the Peers leave ... etc)
- DONE Ability to create your own rooms with diferets names, and to setup an user name (for the Chat)
- Ability to activate and desactivate Video or Audio, and reactivate them
- Room with more than 2 Peers
- Change the Chat from NodeJS to WebRTC DataChannel
##Slides
I've made a short Presentation of WebRTC in my Office, here are the Slides
##Collaborate
You can participate with whatever you want, and use/fork this code (if you find it usefull) for whatever you want ofcourse. If you want to propose more ideas will be welcome jeje
##Contact
email: [email protected]
twitter: @xescugc