-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
本项目为webrtc的signal的服务器和js实现 | ||
|
||
|
||
1. 安装启动turnserver | ||
启动示例 | ||
nohup turnserver -o -a -f -v --mobility -m 10 --max-bps=100000 --min-port=32355 --max-port=65535 --user=ling:ling1234 --user=ling2:ling1234 -r demo & | ||
修改home.html configuration参数 | ||
1. 安装启动turnserver | ||
1.1 项目地址 | ||
https://github.com/coturn/coturn | ||
1.2 启动示例 | ||
turnserver -o -a -f -v --mobility -m 10 --max-bps=100000 --min-port=32355 --max-port=65535 --user=ling:ling1234 --user=ling2:ling1234 -r demo | ||
1.3 修改home.html | ||
configuration参数为自己配置的turnserver | ||
|
||
2. make | ||
go get github.com/gorilla/websocket | ||
go run *.go | ||
2. make | ||
go get github.com/gorilla/websocket | ||
go run *.go | ||
|
||
3. firefox打开http://ip:8080/, 其他浏览器未测试 | ||
3. firefox打开http://ip:8080/, 其他浏览器暂不兼容 | ||
|