Giter Club home page Giter Club logo

webrtc.io-demo's People

Contributors

benbrittain avatar coderaiser avatar danielkutik avatar dennismartensson avatar feiyunruyue avatar jbenet avatar mattnull avatar sarenji 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

webrtc.io-demo's Issues

Linked file not available initially: webrtc.io.js

I ran in to a small problem when experimenting with the demo: example/webrtc.io.js is linked to ../node_modules/webrtc.io/node_modules/webrtc.io-client/lib/webrtc.io.js, but that file doesn't exist when you check out the repository.

I had to:

cd node_modules/webrtc.io
mkdir node_modules
git clone https://github.com/webRTC/webrtc.io-client

Should it be included in the example repository or should it be noted in the README that you'll have to grab it too? I'm happy to make the update. Just wondering if there was a specific reason it wasn't included.

unccessary attachStream call

I think one of these lines is unnecessary in the index.html:

document.getElementById('you').src = URL.createObjectURL(stream); //line 157

rtc.attachStream(stream, 'you'); // line 159

Demo is broken

Trying to run the demo on:
http://webrtc.dennis.is/

I can connect, create a room and see myself properly.
I can open a new tab in this room and see myself 2 times mirrored.

But if I give a friend the link, he can connect, but the video stream doesn't show anything. It is there in the DOM, everything looks correct but it is "blank" or empty.

Any idea why?

Could it be a connection issue? Too slow, firewalls?

Chat is working but not the video.

We tried the latest chrome (25.0.1364.99) and chrome canary (27.0.1426.0) on mac.

Here is the blank element if it can help...

Error:Cannot find module "ws"

Hi,
I tried to install the application just like the description but i am receiving this error

Run in your terminal

git clone [email protected]:dennismartensson/webrtc.io-demo.git
cd webrtc.io-demo
npm install
cd example
node server.js

When i wrote the last command, it gives an error. Inside the \node_modules\webrtc.io\lib\webrtc.io.js:2:23

echo canceling

audio echo always happens. i visit simplewebrtc, it seems gaincontroller is the key. But i dont figure out how to modify in the demo?

Any way to run via passenger (or proxied from Apache)?

I'm trying to figure out if there's any way to get this project (which is exactly what I'd want for a simple family webchat to talk to the kids when I'm travelling) via Apache -- either through passenger or just via a reverse proxy setup. I've monkeyed around a bit and can get the page served, but two browsers do not connect to each other even when everything is on my own internal LAN. It works fine if I run the server standalone and browse straight to it. But my office and various other locations that I connect to home from have quite restrictive firewalls, so I pretty much need to access over 443 which is already running Apache.

Anybody have any useful suggestions?

Thanks in advance,

Seth Green

WebRTC.io demo fails with Chrome Version 25.0.1329.0 canary

Below is the specific error being reported. This is with all the changes needed to switch to RTCPeerConnection API (Chrome 23+) fixed.

/**

  • Connects to the websocket server.
    */
    rtc.connect = function(server, room) {
    room = room || ""; // by default, join a room called the blank string
    rtc._socket = new WebSocket(server);

    rtc._socket.onopen = function() {

    rtc._socket.send(JSON.stringify({
    

    Uncaught TypeError: Type error
    "eventName": "join_room",
    "data":{
    "room": room
    }
    }), function(error){
    if(error){console.log(error);}
    });

Installation doc needs update

Your installation instructions state

git clone [email protected]:webRTC/webrtc.io-demo.git

but that throws an error in Debian:

# git clone [email protected]:webRTC/webrtc.io-demo.git
Cloning into 'webrtc.io-demo'...
Warning: Permanently added the RSA host key for IP address 'x.x.x.x' to the list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

After some time I figured out to use the regular GitHub URL instead:

git clone https://github.com/webRTC/webrtc.io-demo.git

https cannot support?

I run the demo and everything is fine.
when I modify the server.js code:

var http = require('http');
var server = http.createServer(app);
var webRTC = require('webrtc.io').listen(server);
server.listen(8899);

to

var fs = require('fs');
var options = {
  key: fs.readFileSync(__dirname +'/key.pem','utf8'),
  cert: fs.readFileSync(__dirname +'/cert.pem','utf8')
};
var https = require('https');
var httpsServer = https.createServer(options, app);
var webRTC = require('webrtc.io').listen(httpsServer);
httpsServer.listen(8899)

when open the htpps://xxxhost:8899/ ,there cannot find other user ? anything I have forgotten? Thank you!

double .src=url in the example

in https://github.com/webRTC/webrtc.io-demo/blob/master/example/index.html#L160

you can see the following

          rtc.createStream({"video": true, "audio": true}, function(stream) {
            document.getElementById('you').src = URL.createObjectURL(stream);
            rtc.attachStream(stream, 'you');
          });

and in https://github.com/webRTC/webrtc.io-client/blob/master/lib/webrtc.io.js .attachStream is

    rtc.attachStream = function(stream, domId) {
      document.getElementById(domId).src = URL.createObjectURL(stream);
    };

so this .src= url is done twice

Random Disconnection (after ~30s to 1m?)

The connection disconnects between 30 - 60s into usage and I'm not sure why. The console logs out "remove undefined " in script.js at line 193 in your demo code (disconnect stream). Node doesn't log out any errors. Any suggestions on how to proceed debugging?

I'm running the webrtc.io demo with minimal modifications between the following setups:

Windows Chrome:
Version 25.0.1364.172 m

OSX Chrome:
25.0.1364.172

Edit: I'll also add that the msg'ing fails to work too. I have to refresh both machines to reconnect.

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.