webrtc-io / webrtc.io-demo Goto Github PK
View Code? Open in Web Editor NEWwebrtc.io multi user chat demo. Highly experimental technology
webrtc.io multi user chat demo. Highly experimental technology
When I try your demo this is down :( ... ok, I tried to install the demo, without modifications... not work :(
:P
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.
Demo link to http://107.20.223.140/ no longer works.
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
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...
Hi,
I'm new with NodeJS and I'm trying to run the demo but I'm receiving this error in Chrome 24.0.1312.57.
Uncaught SyntaxError: Unexpected token . :8000/webrtc.io.js:1
Maybe it could be related to a misconfiguration on the server side? See this related post:
http://stackoverflow.com/questions/11033171/javascript-causes-error-on-nodejs-server
By the way, this project looks amazing! :)
Best
Raul
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
audio echo always happens. i visit simplewebrtc, it seems gaincontroller is the key. But i dont figure out how to modify in the demo?
Is the demo down? Can't seem to access http://webrtc.dennis.is/
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
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);}
});
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
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!
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
can you help me in this.i can not see other users with the room link shared. any help wud be much appreciated
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.