Jul 31, 2024
Setting Up the Environment
Google_meet
public
assets
(images, CSS, JS)index.html
, action.html
files.Landing Page (action.html)
Web Conferencing Page (index.html)
Signaling with Socket.io
Video Functionality
Messaging System
Participant Details
File Sharing
Recording Functionality
Socket.io Setup:
const io = require("socket.io")(server);
io.on("connection", (socket) => {
console.log(`User connected: ${socket.id}`);
});
Adding Participants:
socket.on("user_connect", (data) => {
// Handle new user connection
});
Full-Screen Functionality:
videoElement.requestFullscreen();
File Upload Handling:
app.post('/upload', (req, res) => {
let file = req.files.sampleFile;
file.mv('./uploads/' + file.name, (err) => {
if (err) return res.status(500).send(err);
res.send('File uploaded!');
});
});