English | 中文(当前)
[实机演示](https://www.bilibili.com/video/BV1q1tGzEE5d)
为 scrcpy 添加音频转发和虚拟按键功能!
-
🔊 Android 10+ 音频转发
内置 sndcpy 支持 (无需 VLC) -
🎮 虚拟控制面板
- 支持长按操作的按钮
- 通过 GUI 或 JSON 配置文件自定义布局
- 实时生效无需重启
-
⚙️ 实用工具
- 保持屏幕常亮 (退出自动恢复设置)
- 中文标点自动转换
-
准备工作
- 已安装 scrcpy
- 安卓设备已开启 USB 调试模式
-
安装
直接下载最新版本 -
配置
可以编辑config.json:- Windows 路径:
%APPDATA%/Scrcpy-Sidebar/config.json - Linux 路径:
~/.config/scrcpy-sidebar/config.json默认配置:
{ "adbPath": "adb.exe", "deviceSerial": "", "note": "请尽量从GUI更改配置, 不合适的修改可能导致错误。Try to change the configuration from the GUI. Inappropriate modifications may cause errors.", "sndcpyApkPath": "sndcpy.apk", "sndcpyPort": 28200, "wndInfoOfAdvancedKeyboard": { "buttons": { "HOME": "HOME" }, "height": 47, "width": 259 } - Windows 路径:
-
添加自定义按钮
"buttons": { "主页": "HOME", "返回": "BACK" }
-
键码参考
查看 Android KeyEvent 文档
- 已在鸿蒙 3.0 (Android 10) 测试通过
- 如果使用 sndcpy 时反复出现 "Remote host closed the connection" 错误,请手动在手机端终止 sndcpy 进程后重试,或回退使用 VLC
vlc -Idummy --demux rawaud --network-caching=0 --play-and-exit tcl://localhost:28200 #如果未更改默认端口号详见 Sndcpy 文档
LGPL-3.0 | © Command_Prompt
新程序 求测试
