Git Product home page Git Product logo

pusher-webrtc's Introduction

HOW TO CREATE A WEBRTC SIGNALLING VIDEO CALL APP WITH PUSHER

WebRTC (Web Real-Time Communications) is a technology which enables Web applications and sites to capture and optionally stream audio and/or video media, and to exchange arbitrary data between browsers without requiring an intermediary. The set of standards that comprises WebRTC makes it possible to share data and perform teleconferencing peer-to-peer, without requiring that the user install plug-ins or any other third-party software.

View tutorial

Getting Started

Clone the project repository by running the command below if you use SSH

git clone [email protected]:samuelayo/pusher_webrtc.git

If you use https, use this instead

git clone https://github.com/samuelayo/pusher_webrtc.git

Change directory into the newly cloned project and install dependencies

cd pusher_webrtc
npm install

Prerequisites

Setup Pusher

If you don't have one already, create a free Pusher account at https://pusher.com/signup then login to your dashboard and create an app.

Then fill in your Pusher app credentials in your index.js file by replacing this line with your appid, appkey and app secret respectively:

const pusher = new Pusher({
    appId: 'XXX-APP-ID',
    key: 'XXX-APP-KEY',
    secret: 'XXX-APP-SECRET',
    cluster: 'XXX-APP-CLUSTER',
    encrypted: true
});

Also, remember to fill in the your app key and app cluster in your index.html file by updating this line:

var pusher = new Pusher('XXX-APP-KEY', {
    cluster: 'XXX-APP-CLUSTER',
    encrypted: true,
    authEndpoint: 'pusher/auth'
});

And finally, start the application by running:

node index.js

Visit http://localhost:3000 in your browser to view the demo.

Built With

  • Pusher - APIs to enable devs building realtime features
  • Node.js - Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.

pusher-webrtc's People

Contributors

joby-sunny avatar

Watchers

James Cloos avatar  avatar

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.