mirror of
https://gitlab.com/comunic/nodejs-webrtcsignalexchangerserver
synced 2024-11-21 21:09:27 +00:00
Updated README
This commit is contained in:
parent
baa3971722
commit
89041d7009
@ -12,7 +12,6 @@ sudo apt install nodejs node-express node-wc
|
||||
|
||||
# Using for signaling
|
||||
## Installation
|
||||
* Install docker
|
||||
* Install coturn: `sudo apt install coturn`
|
||||
* Add a client to coturn: `sudo turnadmin -a -u anonymous -r anonymous.com -p anonymous`
|
||||
|
||||
@ -22,5 +21,13 @@ sudo apt install nodejs node-express node-wc
|
||||
sudo turnserver -o -a -f -r anonymous.com # Use -L option to specify an IP address
|
||||
```
|
||||
|
||||
# Run everything
|
||||
Note : each one of the following command must be runned in a different terminal (at the root of the project) :
|
||||
* `node ./`
|
||||
* `sudo turnserver -o -a -f -r anonymous.com`
|
||||
* `client/server.py` to run simple text client OR `video-client/server.py` to experiment video call.
|
||||
|
||||
Note : you need to open two tabs of your browser pointing on the html file of the repositories. One must have the URL ending by .html and the other one by .html#1
|
||||
|
||||
# Author
|
||||
Pierre HUBERT 2019
|
@ -10,7 +10,7 @@ function byId(id){
|
||||
|
||||
const Config = {
|
||||
port: 8081,
|
||||
server_name: "localhost",
|
||||
server_name: "192.168.1.202",
|
||||
clientID: location.href.toString().includes("#1") ? "client-1" : "client-2",
|
||||
otherPeerID: location.href.toString().includes("#1") ? "client-2" : "client-1"
|
||||
};
|
||||
@ -86,8 +86,8 @@ function InitializePeer() {
|
||||
trickle: false,
|
||||
config: {
|
||||
'iceServers': [
|
||||
{ urls: 'stun:127.0.0.1:3478' },
|
||||
{"url":"turn:127.0.0.1:3478",
|
||||
{ urls: 'stun:192.168.1.202:3478' },
|
||||
{"url":"turn:192.168.1.202:3478",
|
||||
"credential":"anonymous",
|
||||
"username": "anonymous"}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user