Skip to content

jiabailong/SimpleWebRTC-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebRTC signaling server for SimpleWebRTC

This is private signaling WebRTC server demo. It does not depend on signaling.simplewebrtc.com:8888.

Running demo

Important It works perfectly in Firefox 32 and Chrome 34. Other browsers does not fully support WebRTC or getUserMedia DOM APIs.

$ git clone git://github.com/azproduction/SimpleWebRTC-server.git
$ cd SimpleWebRTC-server
$ npm i
$ node server
  • Open http://localhost:8001/#room/webrtc on multiple devices. That's it!
  • Both signaling and static servers are will be listening 0.0.0.0:8001 interface.
  • It takes about 5 seconds to establish a connection.

Available Options

国内的话,最好使用自己的stun服务器。

Ubuntu
安装服务器
$ sudo apt-get install stun
配置服务器,必须配置两个IP地址,不然,无法启动
$ /etc/default/stun
启动stun服务器
$ /etc/init.d/stun start
测试stun服务
$ stun server_ip
  • 服务器搭建完之后,修改simplewebrtc/simplewebrtc.bundle.js文件即可。 -- peerConnectionConfig

About

Private signaling WebRTC server for SimpleWebRTC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 71.2%
  • CSS 17.6%
  • HTML 11.2%