This package allows you to view and control android device in realtime.
Note: This gif is compressed and experience lower quality than actual.
Already implemented all functions in scrcpy server 1.20.
Please check scrcpy server 1.20 source code: Link
- Core: scrcpy
- Idea: py-android-viewer
- CI: index.py
require ffmpeg < 5
require https://github.com/xmsociety/adbutils[adbutils]
export FFMPEG_ROOT=/usr/local/opt/ffmpeg@4
export CGO_LDFLAGS="-L$FFMPEG_ROOT/lib/ -lavcodec -lavformat -lavutil -lswscale -lswresample -lavdevice -lavfilter"
export CGO_CFLAGS="-I$FFMPEG_ROOT/include"
export LDFLAGS="-L/usr/local/opt/ffmpeg@4/lib"
export CPPFLAGS="-I/usr/local/opt/ffmpeg@4/include"
export LD_LIBRARY_PATH=/usr/local/opt/ffmpeg@4/lib
export PKG_CONFIG_PATH="/usr/local/opt/ffmpeg@4/lib/pkgconfig"
There is a helpful mobile simulation mode that gives a hint of how your app would work on a mobile device:
go run -tags mobile main.go