Browse Source

Update README.md

pull/14/merge
Amir 9 years ago committed by GitHub
parent
commit
a696c4c63b
  1. 8
      README.md

8
README.md

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
# Webrtc-ratchet-chat-app
A text, audio and video chat application built with webRTC and Ratchet
# WebRTC and Ratchet Chat Application
A text, audio and video chat application built with webRTC and Ratchet.
# Requirements
- PHP >= 5.4
@ -13,6 +13,6 @@ To test this app on your local server: @@ -13,6 +13,6 @@ To test this app on your local server:
- Open the links from two different browsers and test by sending text chats
- The audio and video call is best tested on two different devices. This will require more configuration
- Open `webrtc-ratchet-chat-app/config.php` and change this line `define('WS_URL', 'ws://localhost:8080/comm');` to `define('WS_URL', '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`
- Blam! Good to go. Navigate to __`YOUR_IP_ADDRESS/webrtc-ratchet-chat-app`__ on your browser on two different devices to keep video calling
- 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`
- Blam! Good to go. Navigate to `YOUR_IP_ADDRESS/webrtc-ratchet-chat-app` on your browser on two different devices to start chatting
- Works best on Chrome, Firefox and the latest versions of Opera desktop browser.

Loading…
Cancel
Save