Skip to content

WALL-E/SimpleWebRTC-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 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

或者使用docker运行

docker run -d --name=turnserver --restart="on-failure:10" -p 3478:3478 -p 3478:3478/udp bprodoehl/turnserver

需要注意的地方

  • 服务器搭建完之后,修改node_modules/simplewebrtc/simplewebrtc.bundle.js文件即可,peerConnectionConfig
  • webserver和turnserver不能运行在同一个IP下

About

Private signaling WebRTC server for SimpleWebRTC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

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