MiroTalk C2C
Real-time cam-2-cam video calls & screen sharing, end-to-end encrypted, to embed in any website with a simple iframe.
Real-time cam-2-cam video calls & screen sharing, end-to-end encrypted, to embed in any website with a simple iframe.
<div align="center">
<a href="https://c2c.mirotalk.com" target="_blank">
<img src="frontend/images/mirotalk-icon.png">
</a>
</div>
<h1 align="center">MiroTalk C2C - Open Source Self-Hosted WebRTC 1-to-1 Video Calling</h1>
<h3 align="center">
Self-hosted, open-source WebRTC cam-to-cam peer-to-peer video calling for private 1-to-1 real-time communication, with screen sharing and end-to-end encryption.
</h3>
<br />
<div align="center">
[](https://github.com/miroslavpejic85/mirotalkc2c/stargazers)
[](https://github.com/miroslavpejic85/mirotalkc2c/network/members)
<a href="https://choosealicense.com/licenses/agpl-3.0/"></a>
<a href="https://hub.docker.com/r/mirotalk/c2c"></a>
<a href="https://github.com/miroslavpejic85/mirotalkc2c/commits/master"></a>
<a href="https://discord.gg/rgGYfeYW3N"></a>
<a href="https://www.linkedin.com/in/miroslav-pejic-976a07101/"></a>
</div>
<br />
<p align="center">
<strong>MiroTalk C2C</strong> is a self-hosted, open-source WebRTC platform for secure cam-to-cam peer-to-peer video calls and screen sharing. It enables immersive 1-to-1 real-time communication with full end-to-end encryption and can be easily embedded into any website via a simple <a href="https://docs.mirotalk.com/mirotalk-c2c/integration/" target="_blank">iframe integration</a>.
</p>
<p align="center">
<a href="https://c2c.mirotalk.com">Try Live Demo</a> · <a
href="https://c2c.mirotalk.com/privacy">Privacy</a> · <a
href="https://docs.mirotalk.com/mirotalk-c2c/self-hosting/">Documentation</a> · <a href="https://discord.gg/rgGYfeYW3N">Discord</a> · <a
href="https://github.com/sponsors/miroslavpejic85">Sponsor</a>
</p>
<br />
<p align="center">
<a href="https://c2c.mirotalk.com">
<img src="frontend/images/ui.png" alt="MiroTalk C2C - Cam-2-Cam Video Calls">
</a>
</p>
<hr />
<br />
<details open>
<summary>⚡ Quick start</summary>
<br/>
**Start in 6 commands:**
```bash
git clone https://github.com/miroslavpejic85/mirotalkc2c.git
cd mirotalkc2c
cp .env.template .env
cp frontend/js/config.template.js frontend/js/config.js
npm install
npm start
```
Open [http://localhost:8080](http://localhost:8080) - done!
</details>
<details>
<summary>🖼️ Camera backgrounds</summary>
In **Settings > Video > Background**, select **Off**, **Blur**, or **Image**. With **Image**, pick one of the bundled presets or **Upload** your own (or drop it on the picker): PNG, JPEG, and WebP images up to 10 MB are processed locally in your browser and are not uploaded. The last uploaded image stays in the picker, so you can switch between it and the presets. Effects appear in the camera preview, outgoing camera video, and camera recordings. Screen sharing is unaffected unless the camera is shown over the shared screen (see below); the selected effect resumes when returning to the camera. Background changes are blocked while recording.
Effects require WebGL2 and canvas stream capture. Segmentation and compositing run in a module worker when the browser supports it, keeping the page responsive, and otherwise fall back to the main thread; blur uses a box blur fallback where canvas filters are unavailable (Safari). MediaPipe Tasks Vision 1.2.0 and its WASM files are lazy-loaded from jsDelivr, and the selfie segmentation models (selfie, plus multiclass on the GPU delegate) are loaded from Google Storage. These hosts must be reachable and allowed by any custom CSP, including WASM execution and same-origin module workers. Processing failures fall back to the original camera.
Effect output is capped at 1280 x 720 and follows the camera frame rate (up to 30 FPS), or 15 FPS when effects fall back to the main thread. Off uses the original camera without processing. Performance varies by device, and background tabs may throttle rendering. Your background choice is remembered in this browser and reapplied on the next join; an uploaded image is kept locally in IndexedDB.
</details>
<details>
<summary>🎥 Camera while sharing screen</summary>
In **Settings > Video > Camera while sharing screen**, pick a corner (**Bottom right**, **Bottom left**, **Top right**, **Top left**) to show your camera as a picture-in-picture bubble over your shared screen, or **Off** (default) to share the screen only. The bubble is drawn in your browser and sent together with the screen as a single video, so the other participant and recordings see it without any extra setup. The corner can be changed while sharing; turning it on mid-share applies the next time you share.
The bubble is shown only if your camera is on when you start sharing, and keeps the selected camera background effect. The composed video is capped at 1920 x 1080 and 30 FPS, uses a bit more CPU than plain screen sharing, and needs canvas stream capture (it falls back to the plain screen when unavailable). Desktop browsers only.
</details>
<details>
<summary>📲 Installable app (PWA)</summary>
MiroTalk C2C can be installed as an app on desktop and phones: own window, dock / home screen icon, no app stores. Open it over HTTPS (or `localhost`) and use the browser's **Install app** / **Add to Home Screen** option.
A small service worker only adds an offline page for navigations; calls, socket.io, and APIs always go to the network. Embedded (iframe) calls do not register it. Configure it with the `PWA_*` variables in `.env` (name, colors, icons), or set `PWA_ENABLED=false` to turn it off; already-installed workers then remove themselves.
</details>
<details>
<summary>🐳 Docker</summary>
<br/>

**Prerequisites:** Install [Docker Engine](https://docs.docker.com/engine/install/) and [Docker Compose](https://docs.docker.com/compose/install/) - Image available on [Docker Hub](https://hub.docker.com/r/mirotalk/c2c)
```bash
git clone https://github.com/miroslavpejic85/mirotalkc2c.git
cd mirotalkc2c
cp .env.template .env
cp frontend/js/config.template.js frontend/js/config.js
cp docker-compose.template.yml docker-compose.yml
docker-compose pull # optional: pull official image
docker-compose up # add -d to run in background
```
Open [http://localhost:8080](http://localhost:8080) - done!
> **Note:**
> Edit `.env`, `frontend/js/config.js`, and `docker-compose.yml` to customize your setup.
> `frontend/js/config.js` is sent to the browser, so never put secrets in it.
</details>
<details>
<summary>📚 Documentation</summary>
<br/>
For detailed guides and references, visit the **[official documentation](https://docs.mirotalk.com)**:
- [About](https://docs.mirotalk.com/mirotalk-c2c/)
- [Self-Hosting Guide](https://docs.mirotalk.com/mirotalk-c2c/self-hosting/)
- [Automation-scripts](https://docs.mirotalk.com/scripts/about/)
- [Configurations](https://docs.mirotalk.com/mirotalk-c2c/configurations/)
- [Integration](https://docs.mirotalk.com/mirotalk-c2c/integration/)
- [Direct Room Join](https://docs.mirotalk.com/mirotalk-c2c/join-room/)
- [REST API Documentation](https://docs.mirotalk.com/mirotalk-c2c/api/)
- [Ngrok](https://docs.mirotalk.com/mirotalk-c2c/ngrok/)
</details>
<details open>
<summary>☁️ Recommended Hosting Providers</summary>
<br/>
| Provider | Description | Link |
| ------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- |
| [](https://www.hetzner.com) | High-performance cloud servers and dedicated root servers with top-tier reliability. Powers our live demo. | [Explore Hetzner](https://www.hetzner.com/cloud) |
| [](https://www.netcup.com/en/?ref=309627) | Enterprise-grade performance at unbeatable prices. Scalable and reliable. | [Explore Netcup](https://www.netcup.com/en/?ref=309627) |
| [](https://hostinger.com/?REFERRALCODE=MIROTALK) | Fast, reliable hosting with 24/7 support and great performance. | [Check out Hostinger](https://hostinger.com/?REFERRALCODE=MIROTALK) |
| [](https://www.dpbolvw.net/click-101027391-14462707) | Top-tier German hosting, dedicated servers, VPS, and web hosting at unbeatable prices. | [Explore Contabo](https://www.dpbolvw.net/click-101027391-14462707) |
To set up your own instance of `MiroTalk C2C` on a dedicated cloud server, please refer to our comprehensive [self-hosting documentation](https://docs.mirotalk.com/mirotalk-c2c/self-hosting/).
</details>
<details>
<summary>🤝 Contributing</summary>
<br/>
Contributions are welcome and greatly appreciated! Whether it's bug fixes, features, or documentation - every contribution helps.
1. Fork the repository
2. Create your feature branch
3. Submit a pull request
Have questions? Join our [Discord community](https://discord.gg/rgGYfeYW3N)!
</details>
<details>
<summary>📄 License</summary>
<br/>
[](LICENSE)
MiroTalk C2C is free and open-source under the terms of AGPLv3 (GNU Affero General Public License v3.0). Please `respect the license conditions`, In particular `modifications need to be free as well and made available to the public`. Get a quick overview of the license at [Choose an open source license](https://choosealicense.com/licenses/agpl-3.0/).
To obtain a [MiroTalk C2C license](https://docs.mirotalk.com/license/licensing-options/) with terms different from the AGPLv3, you can conveniently make your [purchase on CodeCanyon](https://codecanyon.net/item/mirotalk-c2c-webrtc-real-time-cam-2-cam-video-conferences-and-screen-sharing/43383005). This allows you to tailor the licensing conditions to better suit your specific requirements.
</details>
<details open>
<summary>❤️ Support the project</summary>
<br/>
Do you find MiroTalk C2C indispensable for your needs? Join us in supporting this transformative project by [becoming a backer or sponsor](https://github.com/sponsors/miroslavpejic85). By doing so, not only will your logo prominently feature here, but you'll also drive the growth and sustainability of MiroTalk C2C. Your support is vital in ensuring that this valuable platform continues to thrive and remain accessible for all. Make an impact – back MiroTalk C2C today and be part of this exciting journey!
</details>
---
<p align="center">🌐 Explore the full MiroTalk suite (SFU, P2P, BRO, C2C, WEB, CME, ADM) → <a href="https://docs.mirotalk.com/sites/overview"><strong>MiroTalk Overview</strong></a></p>
---
<p align="center">
<a href="https://www.star-history.com/#miroslavpejic85/mirotalkc2c&type=date&legend=top-left">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=miroslavpejic85/mirotalkc2c&type=date&theme=dark&legend=top-left" />
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=miroslavpejic85/mirotalkc2c&type=date&legend=top-left" />
<img alt="Star History Chart" src="https://api.star-history.com/chart?repos=miroslavpejic85/mirotalkc2c&type=date&legend=top-left" />
</picture>
</a>
</p>
<p align="center">
Built with ❤️ by <a href="https://www.linkedin.com/in/miroslav-pejic-976a07101/">Miroslav</a> and the open-source community
</p>
Simple, secure, fast real-time video conferences up to 4k and 60fps, compatible with all browsers and platforms.
Simple, secure, scalable real-time video conferences up to 4k, compatible with all browsers and platforms.
Troubleshooting and monitoring VoIP calls.