{"id":31765080,"url":"https://github.com/keepcoolch/webrtccamerastream","last_synced_at":"2026-05-04T00:32:04.072Z","repository":{"id":317911065,"uuid":"1069338211","full_name":"KeepCoolCH/WebRTCCameraStream","owner":"KeepCoolCH","description":"Simple peer-to-peer live video streaming - start a camera stream in your browser and share it instantly with a receiver via a unique Stream ID.","archived":false,"fork":false,"pushed_at":"2025-10-03T19:23:00.000Z","size":222,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-03T21:29:10.984Z","etag":null,"topics":["css","html","json","php","video","video-streaming","webrtc","webrtc-signaling","webrtc-video"],"latest_commit_sha":null,"homepage":"https://webrtc.kevintobler.ch","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KeepCoolCH.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-03T19:16:16.000Z","updated_at":"2025-10-03T19:21:06.000Z","dependencies_parsed_at":"2025-10-08T20:48:41.322Z","dependency_job_id":null,"html_url":"https://github.com/KeepCoolCH/WebRTCCameraStream","commit_stats":null,"previous_names":["keepcoolch/webrtccamerastream"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/KeepCoolCH/WebRTCCameraStream","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeepCoolCH%2FWebRTCCameraStream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeepCoolCH%2FWebRTCCameraStream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeepCoolCH%2FWebRTCCameraStream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeepCoolCH%2FWebRTCCameraStream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KeepCoolCH","download_url":"https://codeload.github.com/KeepCoolCH/WebRTCCameraStream/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeepCoolCH%2FWebRTCCameraStream/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002381,"owners_count":26083356,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","html","json","php","video","video-streaming","webrtc","webrtc-signaling","webrtc-video"],"created_at":"2025-10-10T00:12:57.654Z","updated_at":"2025-10-10T00:13:00.547Z","avatar_url":"https://github.com/KeepCoolCH.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📹 WebRTC Camera Stream\n\n**Simple peer-to-peer live video streaming** – start a camera stream in your browser and share it instantly with a receiver via a unique Stream ID. Version **1.0** – developed by Kevin Tobler 🌐 [www.kevintobler.ch](https://www.kevintobler.ch)\n\n---\n\n## 🔄 Changelog\n\n### 🆕 Version 1.x\n- **1.0**\n  - 📹 Start live video directly from your browser (desktop or mobile)  \n  - 🔗 Share the stream via a unique Stream ID  \n  - 📋 One-click copy of the Stream ID or a ready-to-use receiver link  \n  - 🔄 Switch between front and back camera (on supported devices)  \n  - 🎥 Select specific cameras from a list (desktop devices)  \n  - ❌ End a stream manually (Sender clears all signals, Receiver can send “Bye”)  \n  - 🌍 Works without plugins – pure WebRTC + PHP signaling\n\n---\n\n## 🚀 Features\n\n- 🎥 Real-time **WebRTC video streaming** between browsers  \n- 🔑 **Stream ID** is randomly generated and unique for each session  \n- 📋 Copy Stream ID or full Receiver link with one click  \n- 🔄 **Switch cameras** (front/back on mobile, device selection on desktop)  \n- 🗑️ Automatic cleanup of old signaling files  \n- ✅ No database required – signaling stored as temporary JSON files  \n- 🌐 Works on modern browsers (Chrome, Firefox, Safari, Edge)  \n\n---\n\n## 📸 Screenshot\n\n![Screenshot](https://online.kevintobler.ch/projectimages/WebRTCCameraStreamV1-0.png)\n\n---\n\n## 🌍 Online Demo\n\nTry WebRTC Camera Stream directly in your browser:  \n🔗 [https://webrtc.kevintobler.ch](https://webrtc.kevintobler.ch)\n\n---\n\n## 🔧 Installation\n\n1. Upload all files (`index.html`, `sender.html`, `receiver.html`, `signal.php`, `css`, `img`) to your web server  \n2. Ensure PHP and HTTPS is enabled (⚠️ PHP 7.4 or higher and TLS/HTTPS required)  \n3. Make sure the server allows writing to the `/signals` directory (created automatically and protected with .htaccess)  \n4. Share the Stream ID or the Receiver link with your viewer  \n\n---\n\n## ⚙️ How It Works\n\n- **Sender** opens `sender.html` and starts the stream → a new random Stream ID is created.  \n- **Receiver** opens `receiver.html` and enters the same Stream ID.  \n- Both communicate via the **signaling server** (`signal.php`), which exchanges:\n  - 📤 Offers \u0026 Answers (SDP)  \n  - ❄️ ICE candidates (STUN connectivity)  \n  - 🚫 Bye messages (to end streams)  \n- Once connected, the video/audio stream flows directly peer-to-peer (encrypted).  \n\n---\n\n## 🔒 Security\n\n- All signaling data is stored as temporary JSON files on the server (auto-deleted after 24h).  \n- Access to the `/signals` directory is blocked via `.htaccess`.  \n- Media streams are **end-to-end encrypted** by WebRTC.  \n- Stream IDs are random 6-digit numbers and expire after stream termination.  \n\n---\n\n## 🧑‍💻 Developer\n\n**Kevin Tobler**  \n🌐 [www.kevintobler.ch](https://www.kevintobler.ch)\n\n---\n\n## 📜 License\n\nThis project is licensed under the **MIT License** – feel free to use, modify, and distribute.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeepcoolch%2Fwebrtccamerastream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeepcoolch%2Fwebrtccamerastream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeepcoolch%2Fwebrtccamerastream/lists"}