Skip to content

Repository files navigation

WebcamToBrowser 🎥

WebcamToBrowser is a high-performance Windows desktop application that captures your laptop's internal camera feed and streams it live to your local network. Devices on the same Wi-Fi network (especially smartphones) can view the real-time stream directly in their browser—no external app installation required.

Important

🚀 Ready-to-Run (No Building Required)
If you just want to use the application and avoid building from source, download the pre-compiled standalone package from the Latest Releases page.

  1. Download WebcamToBrowser-win-x64.zip
  2. Extract the contents
  3. Double-click WebcamToBrowser.exe to start streaming instantly!

Features

  • Integrated Webcam Capture: Powered by FlashCap, providing direct, zero-dependency camera frame grabbing.
  • Dynamic MJPEG Streamer: Multi-threaded socket server that streams video directly to browsers.
  • Zero Configuration Portability: Bypasses HTTP.sys, meaning the app runs without Administrator privileges.
  • Modern Dark UI Dashboard: Clean glassmorphism layout, glowing active status, dropdowns to select camera feed, resolution, and framerate.
  • Dynamic Client Counter: Live visual display of how many mobile/browser devices are currently streaming.
  • Auto-Generated QR Code: Simply scan the QR code on your phone to connect instantly.
  • Mobile-Friendly Viewer Page:
    • 90°/180°/270° Rotation: Rotate landscape stream vertically to fill the screen in phone portrait orientation.
    • Flexible Fit Styles: Switch between Contain (whole frame visible) and Cover (stretches/zooms to fill screen).
    • Fullscreen Toggle: Native browser fullscreen layout, with custom Pseudo-Fullscreen Fallback for iOS Safari/iPhones.
    • Floating Action Overlay: Floating buttons in fullscreen to control rotation/fit and exit view easily.

Getting Started

Prerequisites

Run from Source

  1. Clone this repository.
  2. Open your command terminal in the project directory.
  3. Build and run the app:
    dotnet run

Quick Verification Steps

  1. Select your webcam source and preferred resolution.
  2. Enter your desired streaming port (default 5000) and click Start Streaming.
  3. Point your smartphone to the same Wi-Fi network.
  4. Scan the QR code displayed in the WebcamToBrowser dashboard.
  5. In your mobile browser, tap Fullscreen or Rotate to adjust the viewport to fit portrait mode perfectly.

Production Build & Distribution

To compile a single-file, self-contained executable suitable for GitHub releases (which can run on other Windows machines without needing .NET installed):

Run this command in the project folder:

dotnet publish -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true -p:PublishReadyToRun=true

The output standalone file WebcamToBrowser.exe will be built inside: bin/Release/net9.0-windows/win-x64/publish/

A ready-to-run copy of the compiled release is placed in the local ReleaseBuild folder for easy access and distribution.


License

Licensed under the MIT License.

About

Zero-configuration Windows utility to stream your webcam feed live to browsers on your local network. Scan the auto-generated QR code on any mobile device to view, rotate, and scale the feed instantly-no admin rights or external app installation required.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages