Coder Social home page Coder Social logo

simplewebrtc-messenger's Introduction

Deprecated

The open-source version of SimpleWebRTC has been deprecated. There's now a commercial version which actually is a service for WebRTC instead of being just a library - www.simplewebrtc.com.

Do also note that this project is currently broken. Video Streaming does not work anymore since the library it depends on is no longer maintained.

Simple WebRTC Messenger

A tutorial on building a WebRTC video chat app with SimpleWebRTC , that allows you to communicate with (for example) your customers in real-time.

Article URL: http://www.sitepoint.com/webrtc-video-chat-application-peerjs

Requirements

Installation Steps

  1. Clone repository
  2. Run npm install
  3. Start the server with npm start or node server
  4. Visit http://localhost:3000/

HTTPS is required for remote cameras and remote microphone to work. Currently, there's no known method for creating SSL certificates for a private IP address. You can easily acquire a free SSL certificate for a public domain.

Deployment Steps

If you would like to quickly test out the app on a public domain without dealing with the hassles of setting up SSL, simply deploy they app with now.sh

  1. Clone repository
  2. Run npm install
  3. Run npm install -g now
  4. Deploy the server with now --public. Follow the printed out instructions
  5. Visit the URL provided
  6. Enter room name and username, click 'Create Room'
  7. Invite a friend or use another device with a front camera, visit the URL. Give another name but provide the same room name
  8. Remote videos should show up on both videos. You can also send chat which also works without video

If the video stutters or freezes, it's probably due to the slow upload speeds given by your ISP.

License

The MIT License (MIT) Copyright (c)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

simplewebrtc-messenger's People

Contributors

brandiqa avatar dependabot[bot] avatar

Stargazers

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

Watchers

 avatar  avatar

simplewebrtc-messenger's Issues

So sad, but hope?

Hello,
First of all thank you very much Michael for sharing such a useful tool!
I starred your project despite being depreciated because it worths it.
It's sad to the article fork getting 10 times more stars than you. I guess just because people don't know how to read github.

I found other simplewebrtc libraries on npmjs.com and gave simplewebrtc-plus a try in your project.
It fails at room creation since it's still calling mothership and CORS prevent that.

I wonder if it could work with newer (but different) webrtc libraries though.
It's far beyond my coding abilities.

If you have a look at https://www.npmjs.com/search?q=webrtc and find something that you think might fit, would you let me know?

Have a great day,

Peer connection disconnecting randomly

The peers are able to connect to a room fine. However, after a short period of time ( < 1 min ), user 1's remote video freezes and user 2's remote video goes black. They are unable to reconnect and the room is unusable until everyone leaves the room. This error repeats nomatter the room name or number of connections. Any ideas?

Now.sh Deployment

Hi,

When attempting to build this in Now.sh and a node-express

for some reason the images, buttons and static content aren't working

screenshot from 2018-12-24 16 21 07
t

My now.json file looks like the following:
{ "version": 2, "name": "nodejs-express", "builds": [ { "src": "server.js", "use": "@now/node-server" } ], "routes": [ { "src": "/(.*)", "dest": "server.js" } ] }

Any chance you can help? Apologies if this seems obvious I'm not very familiar with Node

Create Room button is not working

I cloned the repo and install the dependencies as mentioned, but the create room button is not working after entering user name and room id.

The sample works partially on all the browsers

The example is not working completely anywhere. Tested it on Chrome, Firefox and Safari. Sometimes the person can see other but cannot hear, sometimes they cannot see other but hear them..varying results. The chat however works on all three.

room not created

i couldnt create room in local host .... and also the application not deploying(not working) at now.sh

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.