From 89041d7009754381e13fae1ead4d5bad902c3917 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sun, 20 Jan 2019 16:45:08 +0100 Subject: [PATCH] Updated README --- README.MD | 9 ++++++++- video-client/test-video-client.js | 6 +++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/README.MD b/README.MD index 00aa2b9..8ec92f3 100644 --- a/README.MD +++ b/README.MD @@ -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 \ No newline at end of file diff --git a/video-client/test-video-client.js b/video-client/test-video-client.js index 231c38a..7b7e07a 100644 --- a/video-client/test-video-client.js +++ b/video-client/test-video-client.js @@ -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"} ]