Browse Source

Update README.md

pull/14/merge
Amir 9 years ago committed by GitHub
parent
commit
73243d1b98
  1. 10
      README.md

10
README.md

@ -7,14 +7,14 @@ A one-to-one text, audio and video chat application built with webRTC and Ratche
# Getting Started # Getting Started
To test this app on your local server: To test this app on your local server:
- The Ratchet server must be ON. This can be achived by navigating to *__webrtc-ratchet-chat-app/ws/bin__* from your cli and run *__php server.php__* - The Ratchet server must be ON. This can be achived by navigating to *__video-call-app/ws/bin__* from your cli and run *__php server.php__*
- Run the app from your browser at: `http://localhost/webrtc-ratchet-chat-app/` - Run the app from your browser at: `http://localhost/video-call-app/`
- Create and enter a room - Create and enter a room
- Enter the room from two different browsers (using the same link) and test by sending text chats. This can be done on the same device. - Enter the room from two different browsers (using the same link) and test by sending text chats. This can be done on the same device.
- The audio and video call is best tested on two different devices. This will require more configuration - The audio and video call is best tested on two different devices. This will require more configuration
- Open `webrtc-ratchet-chat-app/js/comm.js` and change this line `const wsChat = new WebSocket("ws://localhost:8080/comm");` to `const wsChat = new WebSocket("ws://YOUR_SERVER_IP:8080/comm");` - Open `video-call-app/js/comm.js` and change this line `const wsChat = new WebSocket("ws://localhost:8080/comm");` to `const wsChat = new WebSocket("ws://YOUR_SERVER_IP:8080/comm");`
- Open __`webrtc-ratchet-chat-app/ws/bin/server.php`__ and add your server `ip address` to __`$allowed_origins`__ array, then replace the `localhost` in `$app = new Ratchet\App('localhost', 8080, '0.0.0.0');` with your `ip address` - Open __`video-call-app/ws/bin/server.php`__ and add your server `ip address` to __`$allowed_origins`__ array, then replace the `localhost` in `$app = new Ratchet\App('localhost', 8080, '0.0.0.0');` with your `ip address`
- Blam! Good to go. Navigate to `YOUR_IP_ADDRESS/webrtc-ratchet-chat-app` on your browser on two different devices to start chatting - Blam! Good to go. Navigate to `YOUR_IP_ADDRESS/video-call-app` on your browser on two different devices to start chatting
- Works best on Chrome, Firefox and the latest versions of Opera desktop browser. - Works best on Chrome, Firefox and the latest versions of Opera desktop browser.

Loading…
Cancel
Save