viarotel-org / escrcpy

📱 Graphical Scrcpy to display and control Android, devices powered by Electron.
https://github.com/viarotel-org/escrcpy
Apache License 2.0
2.61k stars 193 forks source link

打开“禁用音频转发”后开始镜像报错无法启动 #231

Closed hanuxxx closed 2 months ago

hanuxxx commented 2 months ago

本意是希望手机音频不在电脑上播放,所以打开这个开关,但是报以下错误,关掉后可以启动镜像,但是仍没办法关掉电脑声音

ERROR: --audio-dup not supported if audio is disabled

此时配置文件如下

{
    "history": {
        "wireless": [
            {
                "host": "192.168.6.18"
            }
        ]
    },
    "common": {
        "theme": "system",
        "language": "zh-CN",
        "savePath": "C:\\Users\\shm22\\Desktop"
    },
    "scrcpy": {
        "global": {
            "--video-bit-rate": "10M",
            "--no-audio": true,
            "--record-format": "mp4",
            "--keyboard": "sdk"
        },
        "deviceScope": "global",
        "192_168_6_18-5555": {
            "--video-bit-rate": "10M",
            "--audio-dup": true,
            "--record-format": "mp4",
            "--keyboard": "sdk"
        }
    }
}
viarotel commented 2 months ago

你需要删除 --audio-dup 配置,禁用音频转发不能和保持设备音频选项共存

viarotel commented 2 months ago

禁用音频转发后 并不会影响设备的音频播放 所以你不需要 勾选 保持设备音频