Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebRTC without Node.js or Peer.js [closed]

Tags:

webrtc

i have 2 questions

1 - Anybody has any tutorial on developing simple chat page using WebRTC without using Node.js / Peer.js ?

or we have no way other than using node.js?

(btw, for signaling, I want to use my own server using websocket)




2 - i want to set up my own stun server for webrtc without using google's. is it possible?

like image 696
user3251954 Avatar asked Feb 19 '14 01:02

user3251954


3 Answers

1. You can write and setup your own signalling server using any technology/mechanism you like.

Here is example of another solution: http://www.webrtcexample.com/

Here is source code of it (signalling server is written in Erlang and very simple): https://github.com/fycth/webrtcexample

Have to note that I'm author of this example.

2. You can setup your own STUN server.

Moreover, it would be event better to use your own STUN/TURN server rather than use public one.

Here you can find open source STUN server that works under Linux either Windows: http://www.stunprotocol.org/

It is also very simple in configuration.

like image 69
fycth Avatar answered Oct 27 '22 20:10

fycth


disclaimer: I work at Pusher.

If you don't want to go through the hassle of setting up your own signaling server, you can use Pusher to handle that for you. It use websockets which avery good option these day since most of the browsers support it. Plus it has fallbacks mechanism just in case.

We wrote a webRTC signaling tutorial if you are interested in learning more, it shouldn't take you more than 5 minutes.

http://pusher.com/tutorials/webrtc_chat

like image 26
Syl Avatar answered Oct 27 '22 21:10

Syl


  1. Node.js is only used to build websocket server, if you check webrtc.io, the client javascript is not related to Node.js;

  2. Sure!

like image 23
Wilson Chen Avatar answered Oct 27 '22 21:10

Wilson Chen