A self-hosted screen streaming web application for Android, Linux, and GameStream devices.
Webscreen can run on Android Termux, Linux, Windows, and MacOS (both amd64 and arm64). It might support more devices in the future!
- Super Resolution (HTTPS required)
- H.264 / H.265
- Multi-Connection
- WebRTC / WebSocket Streaming
Note: If you choose WebSocket, HTTPS is required.
- Video, Audio, Control
- Touch, Mouse, Keyboard
📱 Android (scrcpy)
- Video, Audio, Control
- UHID Devices (Mouse, Keyboard, Gamepad)
- Clipboard Sync (HTTPS required)
- Touch (Multi-finger, pressure)
Note: For Android apk (rooted) and FnOS fpk, you might see youyoudezhuzhu/webscreen.
- Video, Control
- Touch
- GPU support (Xorg/Sway)
- HDMI-in video streaming
- H.264 / H.265 with RKMPP hardware encoding
- Note: Audio is not supported yet.
You need a modern web browser that supports WebRTC (H.264 High Profile, or H.265 Main Profile).
For Android devices, please refer to the scrcpy prerequisites.
For Windows, Linux, MacOS, and Termux, you need adb (or android-tools in some distributions, which provides adb) in your PATH at least to stream Android devices. If the program didn't found adb, it will try to download it. Optionally, if you want to use Linux headless virtual desktop, make sure ffmpeg xvfb, xfce4, sway, and wf-recorder are in your PATH:
sudo apt install adb
# If you want to stream the Linux display:
sudo apt install xvfb ffmpeg xfce4 sway wf-recorder seatdNote: If you want to use Xorg, you might need to run this program as root.
Note: If you want to use Sway,
wf-recorderis used.
Note: All of them need
uinputandseatdand correct permissions if you want to have keyboard and mouse passthrough.
- A vendor kernel with HDMI RX support (
rk3588-hdmirxenabled). - An FFmpeg build with RKMPP support (e.g.,
/usr/lib/jellyfin-ffmpeg/ffmpeg). - Correct read/write permissions for MPP service:
sudo chmod 666 /dev/mpp_service. - System package
v4l-utils.
Download the latest binary from the Releases page.
Then,
mkdir ./data
curl -fsSL https://raw.githubusercontent.com/huonwe/webscreen/main/config.yml -o ./data/config.yml
# You might need to change some settings here../webscreen -D ./dataThen open your browser and visit: http://<your-ip>:8081
Normally, you can build simply by running make.
Termux Note: If building natively on Termux, you must run
go build -ldflags "-checklinkname=0".
git clone https://github.com/huonwe/webscreen.git
cd webscreen
makeservices:
webscreen:
image: dukihiroi/webscreen:latest
container_name: webscreen
network_mode: host
restart: unless-stopped
volumes:
- /dev/bus/usb:/dev/bus/usb
- ./data:/webscreen/data
privileged: true
💡 Tip:
hostnetwork mode is highly recommended due to WebRTC UDP traffic and USB device connection stability.
You might need to pair your Android device via Wireless Debugging first. "Pair device with pairing code" is supported. Once paired, click the Connect button in the web UI. Note: After starting the stream, if the screen is black, simply trigger a UI change (e.g., press the physical volume button) to force a frame update.
Q: Crash: MediaCodec 0x80001001 Exception on custom Android devices?
- This is usually due to the H.264 High Profile (
profile=8). - Fix: Set
profile=1invideo_codec_options.
-
Huge thanks to @Enterpr1se0 and @rogniceguy-max for fixing connection bugs!
-
Huge thanks to youyoudezhuzhu/webscreen for fixing agent unused sdriver resource release bugs and adding android adb manager!
-
websr for use of super resolution
This project is licensed under the GNU Affero General Public License v3.0.

