Coder Social home page Coder Social logo

dimpu / html5-video-chat Goto Github PK

View Code? Open in Web Editor NEW
31.0 5.0 19.0 2.24 MB

Peer to Peer html5 webrtc video chat. No server required.

Home Page: https://dimpu.github.io/html5-video-chat

License: MIT License

JavaScript 99.14% HTML 0.53% CSS 0.33%

html5-video-chat's Introduction

html5-video-chat

A simple html5 web-rtc peer to peer video chat.

webttc-wiki

What is WEB-RTC?

According to wikipedia

WebRTC (Web Real-Time Communication) is an API definition drafted by the World Wide Web Consortium (W3C) that supports browser-to-browser applications for voice calling, video chat, and P2P file sharing without the need of either internal or external plugins

So what we did here?

We tried to implement a simple peer to peer video chat with out any back end. We used only javascript code with HTML5 apis to implement this.

How to install it.

Make sure you have node.js or io.js installed in you system.

Clone this repo.

bash git clone https://github.com/dimpu/html5-video-chat.git

install following node modules globally.

bash npm i -g browserify

bash npm i -g budo

finally run bash npm i form your cloned directory.

How to run it?

Very simple just run the command

bash npm start

It will create a node server to run in your local host.

If you want to build it you can do it by

bash npm run build

How to use it

Give access permission for you webcam. Click on Initialize if you want to initiate your chat. Wait for a while so that it will generate a key for you. (Please note some times it may take long for me it took 2 min once)

Then you should see a json string in your My Id text box.

Copy that string and give it to your fried ask him to open the same link in his/her browerser(make sure there is no #init in his brower)

Ask him to past the json string in OterId box and click on connect Now it should generate a MYId in his browser ask him to give it to you and past it in your chat windos OtherId textbox.

done!

Now you can Enjoy free video chat with your friend.

TODO

  • Apply BS3 styles.
  • Simplify the user interaction.

html5-video-chat's People

Contributors

dimpu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

html5-video-chat's Issues

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.