Coder Social home page Coder Social logo

blackdargn / p2p-webrtc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anshuthopsee/p2p-webrtc

0.0 0.0 0.0 7.46 MB

A super simple serverless demonstration of peer to peer communication using WebRTC. It involves manual exchange of Offer/Answer. Site built with React.

Home Page: https://anshuthopsee.github.io/p2p-webrtc/

JavaScript 96.14% CSS 3.02% HTML 0.83%

p2p-webrtc's Introduction

A React website, that demonstrates the capabilities of peer to peer communication through WebRTC. It is a serverless implementation, so manual exchange of Offer/Answer is involved. (Work in progress).

Demo

Usage demo

How to use

  1. Open the site in two seperate tabs.
  2. Provide access to camera and microphone (This is required because, the created Answer will timeout in 10 seconds otherwise).
  3. Click on Create Offer in one, and Accept Offer in the other.
  4. Exchange Offer/Answer as prompted.
  5. Click on Connect to Peer button, that will appear in one of the tabs.
  6. Both the tabs are now connected.
  • Note: You can connect two seperate devices as well. But make sure, both of them are on the same network, otherwise the created answer will timeout in about 10 seconds. If both the devices are on the same network, you still have to make the Offer/Answer exchange quick.

Features

  1. Video/Audio exchange (Can be disabled).
  2. Chatting.
  3. File sharing (When a file transfer is going on, the Send Button will be disabled, until the transfer gets completed).

Site Link

p2p-webrtc's People

Contributors

anshuthopsee 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.