Git Product home page Git Product logo

webrtc-group-chat-example's People

Contributors

anoek avatar jcarapia avatar lanius-collaris avatar talyguryn 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

webrtc-group-chat-example's Issues

Just listen to peers

Hello together.. everything is working fine, but I need some extra function. I need a function for listening to the peers without sending my own user media data. Is there any way to do this?

Add a package.json

Package dependencies have changed (express has split its modules into separate packages, etc.), proper way to handle this is with a package.json file that allows npm to do its job -- managing packages.

A few issues

Very interesting project, definitely something I'd like to put to use. When I was trying to get it running I had some issues getting the dependencies, as there was no package.json and it uses an older version of express that needs certain middleware that's no longer included. I managed to get around that, but it looks like the server app wants to send a file "newclient.html" which isn't there. I made a copy of the client.html and named it newclient.html, configured and loaded the server, but all it is displaying is a blank dark grey page. Looking at the page source, its definitely receiving the page source, not sure if its something with Chrome & Firefox or what. Any ideas?

https etc

Not sure if anybody is using this, but to make it work in 2020 you need to enable https, by adding something like:

const fs = require("fs");
var express = require('express');
// var http = require('http');
const https = require("https");
var bodyParser = require('body-parser')
var main = express()
// var server = http.createServer(main)

let privateKey, certificate;

privateKey = fs.readFileSync("selfsigned.key", "utf8");
certificate = fs.readFileSync("selfsigned.crt", "utf8");
const credentials = { key: privateKey, cert: certificate };
const server = https.createServer(credentials, main);

Also, if you want to use this across multiple machines, you need to hardcode the IP where 'localhost' is.
I made a couple of minor changes (for example getting rid of https://github.com/anoek/webrtc-group-chat-example/blob/master/client.html#L45 to make the socket.io errors go away) and I can create a PR if anybody is interested.

This was the most minimal WebRTC example I could find so far, thanks for providing this. I can confirm that it works on Linux, Mac OSX and Android.

Not working on 192.168.... :8080

Its working on localhost:8080 but when try to access on 192.168.... :8080 it says "you choose not to provide access to camera/microphone. Demo will not work"

Posting this I realize it's really old since this is the reason

I post this here anyway

It already says:

 node -e "var express = require('socket.io');"
(node:23046) DeprecationWarning: process.EventEmitter is deprecated. Use require('events') instead.

and when I start the server:

node signaling-server.js
   info  - socket.io started
/home/cryptid11/node_modules/express/lib/express.js:99
      throw new Error('Most middleware (like ' + name + ') is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware.');
      ^

Error: Most middleware (like bodyParser) is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware.
    at Function.get (/home/cryptid11/node_modules/express/lib/express.js:99:13)
    at Object.<anonymous> (/home/cryptid11/Documents/webrtc-group-chat-example/signaling-server.js:20:17)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)

I'm trying to start from nothing with js so maybe I need to find something newer, the problem is nowadays you find only examples for webrtc where "wonderful" libraries that requires keys interface with the webrtc lib, I can't find anything easy to learn about only webrtc...

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.