SDK Usage
Demo App

Videoedge Demo App

To get started with the Videoedge SDK, you can either set up and integrate the SDK into your application from scratch or clone our demo app to skip the initial setup steps. Follow these instructions to get started quickly.

Clone the Demo App

  1. Clone the demo app repository from GitHub:
git clone https://github.com/Centedge/videoedge-sdk-demo-app.git
  1. Navigate to the cloned directory
cd videoedge-sdk-demo-app
  1. Set Up Environment Variables
  • Modify the file named .env.sample to .env in the root directory of the project.

  • Open your Videoedge dashboard (opens in a new tab) and navigate to the "Org Settings" section.

  • Generate your access key and secret access key.

  • Modify the following lines to your .env file, replacing ACCESS_KEY and SECRET_ACCESS_KEY with your actual access key and secret access key:

ACCESS_KEY = your_access_key;
SECRET_ACCESS_KEY = your_secret_access_key;
  1. Save the .env file

  2. Start the Demo App

  • Install the dependencies:
npm install
  • Start the development server
npm start
  • Open your browser and navtigate to http://localhost:3300/

  • Enter the roomId and peerName and click joinRoom button.

  • You should be able to see the call running.

  • To invite others to the room, share the URL with them. They can join by entering the same roomId post deployment.

Summary

By cloning the demo app, you can quickly get started with Videoedge without the hassle of setting everything up from scratch. This allows you to focus on making modifications and building your application using the SDK features. If you prefer to set up and integrate the SDK into your application from scratch, you can refer to the events and methods documentation and follow the next steps for detailed explanation.