This-null ba785b742f Sign release builds with a dedicated release key
- Add a release signing config that reads keystore.properties when present
- Keep debug builds working when the key file is absent
- Enable v2 and v3 signature schemes so the key can be rotated later
- Ignore keystores and keystore.properties so secrets stay out of the repo
2026-08-29 18:31:57 +03:00
2026-08-23 20:05:52 +03:00


What it is

FlexCam streams your Android phone's camera to your PC and exposes it as a virtual webcam, so any app (Zoom, Teams, Discord, your browser, OBS) can pick it as a camera. It works over USB (via ADB) and WiFi, and switches between them automatically if one drops.

  • Hybrid USB + WiFi with automatic failover
  • Auto-connects when your phone is ready — no manual steps
  • Live preview on both phone and PC
  • Front / back camera switch, auto portrait/landscape
  • Keeps streaming with the screen off
  • WiFi access code — strangers on your network can't view the stream
  • 10 languages, dark UI, tray support
  • Runs fully on your device — no data ever leaves your computer

Virtual camera driver

FlexCam needs a virtual camera on the PC. You have two options:

  • Bundled driver (no OBS needed): on first run, if no virtual camera is found, click "Install virtual camera" in the app. It registers a small open-source driver (Unity Capture, MIT) once, with a one-time admin prompt.
  • OBS Studio: if you already have OBS, FlexCam uses its Virtual Camera automatically.

Quick start

  1. Phone: install FlexCam.apk and open the app.
  2. PC: unzip FlexCam-Windows.zip and run FlexCam.exe.
    • First run: if prompted, click "Install virtual camera" (one-time).
  3. It auto-connects over USB. For WiFi, type the phone's IP and the access code shown in the app.
  4. In your video app, pick the camera "OBS Virtual Camera" (or "Unity Video Capture" if you used the bundled driver).

USB needs USB debugging enabled (Developer Options). WiFi needs no cable.

Build from source

Android (APK):

cd android
gradlew assembleDebug

Requires JDK 17.

PC (desktop app):

cd pc
python -m venv .venv
.venv\Scripts\python -m pip install -r requirements.txt
.venv\Scripts\python webgui.py

Package a standalone .exe with PyInstaller (onedir):

.venv\Scripts\python -m PyInstaller --noconfirm --onedir --windowed --name FlexCam ^
  --add-data "web;web" --add-data "flexcam-logo.png;." --add-data "FlexCam.apk;." ^
  --add-data "adb;adb" --add-data "virtualcam;virtualcam" ^
  --collect-all pyvirtualcam --collect-all pystray --collect-all webview ^
  --collect-all pythonnet --collect-all clr_loader --collect-all pypresence webgui.py

Tech

  • Android: Kotlin, CameraX, an MJPEG server on port 8474.
  • PC: Python, pywebview UI, pyvirtualcam → OBS or Unity Capture.
  • Transport: raw TCP over adb forward (USB) or the phone's IP (WiFi).

License

FlexCam's own source code is MIT — see LICENSE.

The prebuilt Windows download bundles pyvirtualcam (GPL-2.0), so that build is distributed under the GPL-2.0 as a whole. See THIRD-PARTY-NOTICES.md for the full list.

Description
手机摄像头给电脑用
Readme MIT 11 MiB
Languages
Python 52.5%
Kotlin 23.8%
CSS 8.7%
JavaScript 7.1%
HTML 5.6%
Other 2.3%