Skip to main content
Version: /v2

VideoSDK RTC Ruby API Server Example

A complete Ruby on Rails server example demonstrating VideoSDK RTC API integration.

Pre-requisites

  • Ruby (including ruby-dev or ruby-devel)
  • Ruby Bundler (ruby-bundler)
  • SQLite3 (libsqlite3-dev)
  • VideoSDK Account - Get your API credentials from VideoSDK Developer Console
  • VideoSDK RTC API Server Examples Repo - Clone it from Github

Installation & Setup

1. Clone the Repository

git clone https://github.com/videosdk-live/videosdk-rtc-api-server-examples.git
cd ruby

2. Install Dependencies

bundle install

3. Configure Credentials

Open the main_controller.rb file and update it with your VideoSDK API Key and Secret:

VIDEOSDK_API_KEY = "your_api_key_here"
VIDEOSDK_SECRET_KEY = "your_secret_key_here"
VIDEOSDK_API_ENDPOINT = "https://api.videosdk.live/v2"

4. Run the Server

rails s

Got a Question? Ask us on discord