A text, audio and video chat application built with webRTC and Ratchet (PHP WebSocket)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Amir b828fb8c58 Create room button centralised 10 years ago
css Files Created 10 years ago
img Files Created 10 years ago
js 10 years ago
media Files Created 10 years ago
ws Files Created 10 years ago
.gitattributes 🍭 Added .gitattributes & .gitignore files 10 years ago
.gitignore 🍭 Added .gitattributes & .gitignore files 10 years ago
README.md Update README.md 10 years ago
comm.php Config.js file linked 10 years ago
config.php Files Created 10 years ago
index.php Create room button centralised 10 years ago

README.md

WebRTC and Ratchet Chat Application

A text, audio and video chat application built with webRTC and Ratchet.

Requirements

  • PHP >= 5.4
  • Every other required files are included or referenced as the case may be

Getting Started

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
  • Run the app from your browser at: http://localhost/webrtc-ratchet-chat-app/
  • Create a room and get link to room
  • 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 start chatting
  • Works best on Chrome, Firefox and the latest versions of Opera desktop browser.