
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Learn to build a PHP live video chat with WebRTC and the JavaScript API to establish a peer-to-peer connection for video chat, with WebSocket signaling.
Set up a local web server with XAMPP to run PHP and MariaDB, start Apache and MySQL services, and verify by visiting http://localhost/ to begin building your video chat application.
Create the vchat directory with assets, js, images, and css, then build core and classes folders and add an index.php that outputs hello world to test the Apache server.
Install and verify composer to manage PHP dependencies, then enable global access on Linux, macOS, and Windows for building a live video chat app with WebRTC, PHP, and JS.
Set up a websocket server by creating project folders, adding server and client scripts, and wiring in documentation examples. Test connections and messages across clients to enable real-time chat.
Explore building a users table for a live video chat app, defining fields like user_id, username, email, password, profile image, session_id, and connection_id within a php admin interface.
Create a login form on the index page to sign in for video calls, using downloaded php project files and assets, with validation in the next lecture.
Learn to validate a login form in PHP by handling email and password inputs, sanitizing and escaping data, validating email format, encrypting the password, and checking user existence in database.
Define a PHP database class to connect to the database, start a session, and include the database file from the core folder, setting constants for host, database, and user data retrieval by email.
Implement a PHP method to verify a submitted email exists in the user table using a constructor, prepared statements, and a DB connection to return user data for login.
Develop a password hashing method using password_hash with Blowfish by default, saving the encrypted password, and implementing user read and login redirect logic.
Securely log in users using email verification, password hash comparison, and session ID regeneration to prevent hijacking, then redirect to the home page.
Develop PHP user methods for a live video chat app: display user data, verify login, check lock status, and manage logout and sessions with redirects.
Enable the rewrite engine in an htaccess file and rewrite non-file requests starting with data to a php handler that echoes the username for the live video chat app.
Develop the connect page for a live video chat app using WebRTC, PHP, and JS, displaying the logged-in user profile with a call button.
Create an asynchronous function to request camera and microphone access using the browser’s media devices, display the local video stream, and integrate it with a peer connection by adding tracks.
Access the user class methods in the chat class to identify the connected user and retrieve user data via the web socket, preparing to tag the token for database storage.
Create a function to generate a WebRTC offer with media info, IP address, and ICE candidates, enabling negotiation and sending the offer to establish a video call.
Create a function to check if the other user is on a call via websockets, then show caller info (profile image, username) and alert if busy, with a page reload.
Display a call pop-up to let users accept or reject the incoming call, showing the caller's username and profile image with a glass effect.
Create a function to generate an answer from a remote user by handling offers, creating and setting the local description, and exchanging sdp and ice candidates to establish a connection.
Establish a B2B peer-to-peer video chat by exchanging offers and ICE candidates to display remote and local camera feeds, handle the session description protocol, and render streams.
Create a hang up function to end the call, display a 'call disconnected' message, and integrate a timer plugin to show minutes and seconds during the video call.
Create a function to display alert popups for call events (disconnected, busy, hang up) using username and profile image, and control the popup visibility in the live video chat app.
Add video chat on the home page using WebRTC, PHP, and JS, enabling calls, checking login, and redirecting to the caller profile to display the video chat.
Have you ever wanted to build a Live Video Chat Using PHP just like WhatsApp or Google meet and don’t know where ? Don’t worry this Course will guide you step by step to build your very first Video call application. Yes you can create your own one to one live Video chat system using WebRTC, PHP, MySQL and JavaScript
It doesn't matter if you're a beginner or an experienced programmer, just you have to know the basics of PHP, JavaScript and MySQL and HTML/CSS
This course will be greatly and highly beneficial to you. And by the end of this course you will be capable of creating your own Peer To Peer Live Video Chat Application Just like WhatsApp, or zoom, not only this you will also learn about websocket because we will be using websocket with PHP.
And you can also add this One to one live video chat feature to your existing website or to your project where you want to add support with video chat.
You can highlight the project you create in this course, If anyone who sees this project in your portfolio might want to hire you because from this course you will gain skills which help you to understand the main concept used in the Real Time Communication system. So get the ULTIMATE guide to create a REAL TIME Video Application Using webRTC, PHP and Websockets.
Support
By taking this course you will get my full support. I've always loved to help my students (could be you). I’ve answered all that question that students have asked so far. I’m always in a ninja mood, if there’s a question it’ll be answered within an hour or few. By all this means if you have any errors. I'll be happy to check codes, errors.
This Course Covers The Following Features:
One to one Video Chat
WebRTC Connection Logic
Send Video Call Request
Receive Video Call Request
Signaling Server Logic
WebRTC Negotiation
Peer to Peer connection
WebSocket Server / Client Logic
Clients Connections Logic
Store Messages Logic
Display call popup with Accept / Decline buttons
Display Client / Remote Video
Websocket Tokens
Sessions
Please
look at all the lectures to see more things that are covered.