Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.41 KB

README.md

File metadata and controls

41 lines (31 loc) · 1.41 KB

Go Scrcpy Client

This package allows you to view and control android device in realtime.

Note: This gif is compressed and experience lower quality than actual.

Contribution & Development

Already implemented all functions in scrcpy server 1.20.
Please check scrcpy server 1.20 source code: Link

Reference & Appreciation

env

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"

Run in mobile simulation

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

screenshot