Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/theanishtar/video-call-webrtc
Callvideo thời gian thực với SocketIO và WebRTC
https://github.com/theanishtar/video-call-webrtc
Last synced: about 5 hours ago
JSON representation
Callvideo thời gian thực với SocketIO và WebRTC
- Host: GitHub
- URL: https://github.com/theanishtar/video-call-webrtc
- Owner: theanishtar
- Created: 2023-10-03T16:31:21.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-03T16:32:30.000Z (about 1 year ago)
- Last Synced: 2024-04-09T16:16:13.243Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 470 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring Boot WebRTC Peer-to-Peer Video Communication Room Based
#### Technologies:
- WebRTC
- Socket.IO
- BootStrapWebRTC (Web Real-Time Communication): An open-source project that provides real-time communication between web browsers and mobile applications. Mostly used for video, audio communications, screen sharing, and streaming.
SocketIO: A JavaScript library designed for real-time, bidirectional communication. In this project, I have implemented "netty-socket.io" ( Java Spring Boot compatible) as a signaling mechanism.
### Instructions
#### write your local ip for each step
1) **Generate certificates:**
- you can use git bash
- write your local ip address of your computer/host like `192.168.0.3`
- please create an empty ssl folder under the project directory`mkdir ssl && openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ssl/private_key.pem -out ssl/certificate.pem -subj "//C=US//ST=California//L=San Francisco//O=MyOrganization//OU=MyDepartment//CN="`
2) **update nginx.conf**
change `` with your local ip same as step 1
3) **update client.js file in resources**
file location: `src/main/resources/static/client.js`
```let socket = io.connect("https://", {secure: true});```
4) **build docker image**
`docker-compose up -d --build`
### Examples
#### video
[https://www.youtube.com/watch?v=nbOB8ekk3xM](https://www.youtube.com/watch?v=nbOB8ekk3xM)
#### phone + computer connection example
![./images/image3.png](./images/image3.png)
![./images/image1.png](./images/image1.png)
![./images/image2.png](./images/image2.png)