Ws-scrcpy |top|

Run ws-scrcpy on localhost only ( BIND_ADDRESS=127.0.0.1 ) and put it behind Nginx with Basic Auth or OAuth.

Comprehensive Guide to ws-scrcpy: Stream and Control Android Devices via Web Browser

The server configuration defaults are usually fine, but you can specify environment variables (see Section 6).

deviceTracker: runGoogTracker: true # 启用 Android 设备追踪 runApplTracker: false # iOS 设备追踪 ws-scrcpy

: The server uses FFmpeg and the Android screen capture API to encode the device's display into an H.264 or H.265 video stream.

export NODE_OPTIONS="--max-old-space-size=4096" npm install

Use H.264 for maximum browser compatibility. Switch to H.265 or AV1 (if supported by your device and browser) for better image quality at lower bitrates. Run ws-scrcpy on localhost only ( BIND_ADDRESS=127

npm install -g ws-scrcpy

is an open-source browser-based remote control client for Android and iOS devices, acting as a lightweight web interface for Genymobile's popular scrcpy application. Developed by the open-source community on the NetrisTV/ws-scrcpy GitHub Repository , it allows users to cast and fully control mobile screens directly via modern web browsers without installing native client applications.

Full support for mouse and keyboard events, including multi-touch emulation (using CTRL and SHIFT keys). ws-scrcpy

⚠️ : ws-scrcpy provides full control over Android devices. If exposed to the internet without protection:

docker run --name ws-scrcpy -d -p 8000:8000 ghostry/ws-scrcpy

最常见的是 Node.js、node-gyp 或 Python 版本不匹配。建议严格遵循以下版本组合: