Skip to content

xmsociety/go-scrcpy-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An easy to use go scrcpy client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages