I am aiming to create a WebRTC chat (video/audio) application and most of tutorials and demos that I see are using the following signaling channel:
signaling.simplewebrtc:8888
I even found this great demo, where the developer stated that it does not depend on this signaling channel, but when I went through the code I found it there.
Can someone explain me, how can I substitute this with my own signaling channel?
I am aiming to create a WebRTC chat (video/audio) application and most of tutorials and demos that I see are using the following signaling channel:
signaling.simplewebrtc.:8888
I even found this great demo, where the developer stated that it does not depend on this signaling channel, but when I went through the code I found it there.
Can someone explain me, how can I substitute this with my own signaling channel?
Share Improve this question asked Jan 25, 2014 at 13:43 ChessChess 311 gold badge1 silver badge2 bronze badges 1- All you need to do is add a signalling server to exchange SDPs and ice candidates. There are a plethora of options and tutorials at your disposal with some simple googling. – Benjamin Trent Commented Sep 2, 2014 at 19:07
5 Answers
Reset to default 3I do not pletely understand your question. I guess the URL you provided points to an websocket server. Websockets are often used for signaling because they provide a permanent, full-duplex connection (this means that the server is able to push messages to the client without an previous request).
You have to exchange network information between the two parties who want to set up an RTCPeerConnection because of NAT and firewalls etc... How to exchange that information is not part of the WebRTC-specification. You can use any protocol you want, HTTP,Websockets, even EMail (but that would be pretty ugly to implement :) ). But if you want to build your own signaling-server using node.js you can have a look at the tutorial I am currently writing. It explains in detail how to setup your own very simple video-chat using WebRTC and a Node-Server hosted on uberspace.de:
Tutorial: Create your own Videochat-Application with HTML and JavaScript
If you use my tutorial it would be great if you could tell me if it is understandable.
Edit: As I am still getting requests for this old tutorial, please use an up to date one like those: https://www.baeldung./webrtc
https://www.html5rocks./en/tutorials/webrtc/basics/
Please take a look at this excellent blog on the signaling options that are available for WebRTC.
I have listed a few important blogs and sample WebRTC applications that you might also want to review to help you build your chat application.
- I installed nodejs from Install NodeJS along with the required dependencies at signalmaster
Ran
node server.js
in cmd. And server started running.P S: Change url option present in simplewebrtc.bundle.js
Let me know if you face any problem
I wonder why no one has mentioned this so far . You can also use the sip framework based webrtc libraries and clients such as sipml5 , jssip etc . Additionally since you mentioned you would like your own server setup to cater to signalling requests , you will have a wide variety of websockets based sip servers to choose from such as officesip , kamailio , mobicents etc .
You can try and modify the the latest application that ships with Mobicents at https://code.google./p/sipservlets/wiki/HTML5WebRTCVideoApplication that allows you to chat and video chat.