Coder Social home page Coder Social logo

enablex / multiparty-video-calling-c-sharp-application Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 2.0 1.38 MB

This Sample Web Application demonstrates the use of EnableX WebRTC Platform APIs to carry out Multi-Party real time video calling. The Application Server is developed in C# and Client End Point is developed in HTML, CSS, JavaScript.

Home Page: https://www.enablex.io/cpaas/video-api

C# 100.00%
enablex enablex-platform multi-party-rtc webrtc videochat video javascript single-page-app end-to-end-encryption chat

multiparty-video-calling-c-sharp-application's Introduction

Multi-Party RTC Web App using C# and EnableX Web Toolkit

The Sample Web App demonstrates the use of APIs for EnableX platform to develop basic Multi-Party RTC (Real Time Communication) Application. The main motivation behind this application is to demonstrate usage of APIs and allow developers to ramp up on app by hosting on their own devices instead of directly using servers.

RTC Applications hosted on EnableX platform run natively on supported set of web browsers without any additional plugin downloads.

This basic Multi-Party RTC Application is generated using HTML, CSS, Bootstrap, JavaScript, jQuery, C# and EnxRtc (The EnableX Web Toolkit).

The details of the supported set of web browsers can be found here: https://developer.enablex.io/video/browser-compatibility-of-enablex-video/

1. Important!

When developing a Client Application with EnxRtc.js make sure to include the updated EnxRtc.js polyfills from https://developer.enablex.io/video-api/client-api/web-toolkit/ for RTCPeerConnection and getUserMedia. Otherwise your application will not work in web browsers.

2. Trial

Sign up for a free trial https://portal.enablex.io/cpaas/trial-sign-up/ or try our multiparty video chat https://try.enablex.io/.

3. Installation

3.1 Pre-Requisites

3.1.1 App Id and App Key

  • Register with EnableX [https://portal.enablex.io/cpaas/trial-sign-up/]
  • Create your Application
  • Get your App ID and App Key
  • Clone this Repository git clone https://github.com/EnableX/Multiparty-Video-Calling-C-Sharp-Application --recursive

#f03c15 Please note --recursive option. Repo should be cloned recursively to download client app.

3.1.2 SSL Certificates

The Application needs to run on https. So, you need to use a valid SSL Certificate for your Domain and point your application to use them.

However you may use self-signed Certificate to run this application locally. There are many Web Sites to get a Self-Signed Certificate generated for you, Google it. Few among them are:

As you have Certificate or created a Self-Signed Certificate, create a directory "certs" under your Sample Web App Directory. Copy your Certificate files (.key and .crt files) to this directory.

3.1.3 Configure

Before you can run this application, configure the Service by editing appsettings.json file to use your app ID and app key:

"EnableX": {
    "API_URL": "https://api.enablex.io/v1/",
    "APP_ID": "YOUR_APP_ID",
    "APP_KEY": "YOUR_APP_KEY"
}

3.2 Test

  • Open a browser and go to https://yourdomain.com:{PORT}/. The browser should load the App.
  • You need Room ID to join. We have added a Don't have a Room ID? Create here link below the form. Click it to get a Room ID prefilled in the form.
  • Store the Room ID for future use and to share it
  • Enter a user Name (e.g. test0)
  • Select Join as Moderator
  • Sign In and allow access to camera and microphone when prompted to start your first webRTC call through EnableX
  • Open another browser tab and enter https://yourdomain.com:{PORT}/
  • Enter the same Room ID previously created, add a different user Name (e.g. test1) and select Join as Participant and click Join.
  • Now, you should see your own video in all the tabs!

4 List of API endpoints exposed by the application

5. Server API

EnableX Server API is a Rest API service meant to be called from Partners' Application Server to provision video enabled meeting rooms. API Access is given to each Application through the assigned App ID and App Key. So, the App ID and App Key are to be used as Username and Password respectively to pass as HTTP Basic Authentication header to access Server API.

For this application, the following Server API calls are used:

To know more about Server API, go to: https://developer.enablex.io/video-api/server-api/

6. Client API

Client End Point Application uses Web Toolkit EnxRtc.js to communicate with EnableX Servers to initiate and manage RTC Communications.

To know more about Client API, go to: https://developer.enablex.io/video-api/client-api/

multiparty-video-calling-c-sharp-application's People

Contributors

divyam59 avatar enablexer avatar rajeshg-vcloudx avatar rajeshgoyalg avatar subratthayal avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

hnjm bangush

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.