This repository contains a simple implementation of a cross-browser WebRTC video call.
- Allows users to make video calls in real-time.
- Cross-browser compatibility.
- Basic user interface with start and end call buttons.
To run the demo, simply open the index.html
file in a web browser that supports WebRTC.
The HTML file (index.html
) defines the basic structure of the page, including video elements and buttons.
The CSS file (styles.css
) sets the styling for the video elements.
The JavaScript file (script.js
) implements the WebRTC functionality.
- Declares variables for video elements, buttons, local stream, and remote stream.
startCall()
: Initiates a video call by getting the user's media stream and setting up a peer connection.endCall()
: Terminates the video call by stopping streams and resetting video elements.
- Attaches event listeners to buttons for starting and ending calls.
- Open
index.html
in a supported web browser. - Click the "Start Call" button to initiate a video call.
- Click the "End Call" button to terminate the call.
For any issues or questions, please open an issue in this repository.
This project is licensed under the MIT License.