Skip to content

BranLiang/demo-rails-webrtc

Repository files navigation

DEMO RAILS WEBRTC

Demo show how to build a video conference app with ruby on rails.

Tutorals

https://medium.com/@BranLiang/a-complete-guide-to-webrtc-with-ruby-on-rails-9ea68e67154e

https://ruby-china.org/topics/39820

Development setup

Install dependencies

bundle install
yarn install

Add twillio credentials

rails credentials:edit
twilio_account_sid: xxxx
twilio_auth_token: xxxx

Start server

bundle exec rails server

Usage example

  1. Open two tabs on your browser
  2. Click Get Video on both tabs
  3. Wait several seconds until both connection are initialized
  4. Click Join room on one tab only!
  5. Enjoy the demo video meeting!

Contributing

  1. Fork it (https://github.com/BranLiang/demo-rails-webrtc/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request