Skip to content
mustqqPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zoom 2.0

A Zoom-style video meeting app that runs entirely in the browser. You can host it for free on GitHub Pages. There's no backend to run and no accounts.

Features

Host / Join Host a meeting to get a code like abc-defg-hij and an invite link. Others join with the code or the link.
Webcam & mic Turn the camera and microphone on or off at any time. People with the camera off are shown as an avatar.
Screen sharing Share a screen, window or tab. The shared screen fills the main stage, and participants appear in a side strip.
Chat Text chat with everyone in the call. People who join late receive the recent chat history.
Participants See who's in the call and who is muted. The host can remove people.
10 people max The host turns away anyone who tries to join a full meeting.
8 hour max The host picks a limit from 15 min to 8 h. Everyone sees a countdown, and the call ends automatically when time runs out.
Saved calls Every call is saved in your browser with its date, duration, participants and chat. Record captures the whole call (all videos, the shared screen and all audio) as a video file. You can play, download or delete recordings from the home page.

Deploy to GitHub Pages

  1. Create a new repository on GitHub, for example zoom-2.0.
  2. Push this folder to it:
    git init
    git add .
    git commit -m "Zoom 2.0"
    git branch -M main
    git remote add origin https://github.com/<your-username>/zoom-2.0.git
    git push -u origin main
  3. On GitHub, open Settings → Pages. Under Build and deployment, set Source to Deploy from a branch, choose main and / (root), then click Save.
  4. After a minute the app is live at https://<your-username>.github.io/zoom-2.0/.

GitHub Pages serves over HTTPS, which browsers require before they allow camera, microphone and screen access.

Run it locally

Browsers block ES modules on file:// pages, so serve the folder with any static server and open http://localhost:8000:

npx http-server -p 8000 -c-1

(or python -m http.server 8000 if you have Python)

To try a call, open the page in two browser windows: host in one and join in the other.

How it works

  • Peer to peer: Audio, video, screen and chat travel directly between browsers over WebRTC, in a full mesh where everyone connects to everyone.
  • Signalling: Browsers find each other through the free public PeerJS server (0.peerjs.com). That server only introduces participants. No media or chat passes through it.
  • Host authority: The host's browser enforces the participant cap and the time limit. If the host leaves or ends the call, it ends for everyone.
  • Storage: Recordings are written to the recording person's browser (IndexedDB) in chunks while the call runs, so long calls never need to fit in memory. Only that person gets the file. Everyone else sees a REC indicator.

Limitations

  • Bandwidth: In a mesh, each person uploads their camera to every other person. With 10 people on camera you need a decent upload connection. Camera quality is capped (see CAMERA_MAX_BITRATE in js/config.js) to keep this manageable.
  • Strict networks: Some corporate or mobile networks block direct peer connections. In that case a TURN relay server is needed. Add one in js/config.js under iceServers.
  • Recordings stay on your device: Recordings are kept in the browser that made them. Clearing site data deletes them, so download anything you want to keep. Recordings are .webm files, which play in Chrome, Firefox, Edge and VLC. Some players can't seek them well.
  • Mobile screen sharing: Most mobile browsers don't support screen sharing.

Project structure

index.html        page markup
css/style.css     styles
js/config.js      app name, limits, server settings
js/app.js         user interface
js/meeting.js     peer-to-peer meeting logic (PeerJS)
js/media.js       camera & microphone handling
js/recorder.js    call recording (canvas compositing + MediaRecorder)
js/storage.js     saved calls & recordings (IndexedDB)
js/icons.js       SVG icons

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages