escrcpy/README.md

223 lines
9.1 KiB
Markdown
Raw Normal View History

2023-10-21 07:38:45 +02:00
<div style="display:flex;">
2023-10-24 15:28:53 +02:00
<img src="./electron/resources/build/logo.png" alt="viarotel-escrcpy" style="width: 108px;">
2023-10-21 07:38:45 +02:00
</div>
2023-10-15 18:20:23 +02:00
# Escrcpy
2023-09-19 04:12:19 +02:00
2023-10-24 15:35:34 +02:00
📱 Display and control your Android device with a graphical interface of Scrcpy powered by Electron. [中文文档](https://github.com/viarotel-org/escrcpy/blob/main/README-CN.md)
2023-09-19 04:13:12 +02:00
2023-10-15 18:20:23 +02:00
<div style="display:flex;">
2023-10-23 10:19:17 +02:00
<img src="https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/da63c9db7a944899b0ad27a0b67d29ae~tplv-k3u1fbpfcp-jj-mark:0:0:0:0:q75.image" alt="viarotel-escrcpy" style="width: 100%;">
2023-10-15 18:20:23 +02:00
</div>
2023-10-24 15:35:34 +02:00
[More screenshots](https://github.com/viarotel-org/escrcpy/tree/main/screenshots)
2023-09-19 04:12:19 +02:00
2023-10-24 15:28:53 +02:00
## Features
2023-09-19 04:12:19 +02:00
2023-10-24 15:28:53 +02:00
- 🏃 Synchronous: Benefit from web technologies to synchronize with Scrcpy faster
- 💡 Customizable: Support independent configuration for multiple devices and ability to add notes and import/export all configurations
- 😎 Lightweight: Native support, only display device screen
- ⚡️ Performance: 30-120 fps depending on device
- 🌟 Quality: 1920×1080 or higher
- 🕒 Low latency: 35~70 ms
- 🚀 Quick startup: Display first image in about 1 second
- 🙅‍♂️ Non-intrusive: No installation residual left on Android device
- 🤩 User benefits: No account, no ads, no internet required
- 🗽 Free and open source
2023-09-19 04:12:19 +02:00
2023-10-24 15:28:53 +02:00
## Get Software Packages
2023-09-19 04:12:19 +02:00
2023-10-24 15:28:53 +02:00
[Check release addresses](https://github.com/viarotel-org/escrcpy/releases)
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
## Quick Start
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
### USB Connection
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
> Note: If the phone prompts for debugging authorization, click allow
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
1. Enable developer mode and USB debugging on your Android phone
2. Open Escrcpy and connect your Android phone to your computer
3. The device list in Escrcpy should have detected your phone, click start mirroring
4. Enjoy!
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
### WIFI Connection
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
> Note: Wireless debugging needs to be enabled on your phone's wireless debugging page to get the IP address (usually the IP assigned when connecting to WIFI) and port number (default 5555) of the device
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
1. Follow steps 1-2 in USB Connection
2. Input the device IP address and port number obtained to Escrcpy and click connect device
3. The device list in Escrcpy should have detected your phone, click start mirroring
4. Enjoy!
2023-10-15 18:20:23 +02:00
2023-10-21 04:08:03 +02:00
### macOS && Linux
2023-10-24 15:28:53 +02:00
> Note: These platforms do not come with integrated [Adb](https://developer.android.com/studio/releases/platform-tools?hl=zh-cn) and [Scrcpy](https://github.com/Genymobile/scrcpy), you need to install them manually
2023-10-21 04:08:03 +02:00
2023-10-24 15:28:53 +02:00
1. Refer to the [installation document](https://github.com/Genymobile/scrcpy/blob/master/doc/linux.md) for Linux
2. Refer to the [installation document](https://github.com/Genymobile/scrcpy/blob/master/doc/macos.md) for macOS
3. Follow steps in USB Connection and WIFI Connection after dependencies are installed successfully
2023-10-21 04:08:03 +02:00
2023-10-24 15:28:53 +02:00
## Shortcuts
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
Refer to [scrcpy/doc/shortcuts](https://github.com/Genymobile/scrcpy/blob/master/doc/shortcuts.md)
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
## Device Interaction Bar
2023-10-24 15:28:53 +02:00
- Switch
- Home
- Back
- Notification
- Power
- Restart
- Screenshot
- Install APP
2023-10-24 15:28:53 +02:00
## Preferences
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
> Continuously improving. Currently supports the following common configurations
2023-10-24 15:28:53 +02:00
### Customization
2023-10-24 15:28:53 +02:00
- Adb path
- Scrcpy path
- File storage path (for video/audio recording and device screenshots)
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
### Video Control
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
- Resolution
- Bitrate
- Refresh rate
- Video decoder
- Video encoder
- Screen rotation
- Screen cropping
- Multi-display
- Video buffering
- Audio buffering
- Receiver (v4l2) buffering
- Disable video
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
### Device Control
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
- Show touch points
- Keep screen on
- Close screen when controlling
- Close screen after control ends
- Stop charging when controlling
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
### Window Control
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
- Borderless mode
- Fullscreen mode
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
### Video/Audio Recording
2023-10-24 15:28:53 +02:00
- Recording video format
2023-10-24 15:28:53 +02:00
### Audio Control
2023-10-24 15:28:53 +02:00
- Disable audio
2023-10-24 15:28:53 +02:00
## Next Steps?
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
> Priority from high to low:
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
1. Optimize user interface, design a suitable logo ✅
2. Built-in software update function ✅
3. Record and save audio/video ✅
4. Add device quick interaction control bar ✅
5. Support customization of Adb and Scrcpy dependencies ✅
6. Support custom device name, and import/export of preference settings ✅
7. Customization, support independent configuration for individual devices ✅
8. Add support for macOS and linux operating systems ✅
9. Support internationalization ✅
10. Support for dark mode 🚧
11. Add game enhancement features such as game keyboard mapping 🚧
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
## FAQ
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
### Computer cannot detect device after connecting
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
1. Please unplug and reconnect your device, and make sure the device has granted USB debugging authorization.
2. If it still doesn't work, your computer may be missing necessary drivers. Please install drivers using third-party tools such as DriverWizard and try again.
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
### Unable to enter Chinese
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
This issue is known - Scrcpy doesn't seem to have tested and supported direct Chinese input. It's recommended to install a third-party input method on the phone that can well support, such as:
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
- Sogou Input
- QQ Input
- Google Pinyin Input
2023-10-15 18:20:23 +02:00
- Gboard
2023-10-24 15:28:53 +02:00
### Wireless connection prompts: The target computer actively refuses access
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
The first wireless connection may require pairing. Alternatively, insert USB to ensure connection establishment and authorization success before using wireless.
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
### Clicking wireless mode after connecting via data cable has no response
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
Please click again, or click refresh devices. Generally it will not exceed two clicks. If still not working, please provide device model and Android version to [Issues](https://github.com/viarotel-org/escrcpy/issues)
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
### Why is the device interaction control bar not designed as an automatically sticking floating menu?
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
Adopting the floating menu approach will inevitably increase coupling with Scrcpy and difficulty in synchronization updates. Many similar ScrcpyGUI softwares had to invest a lot of effort in this approach and eventually gave up development due to update difficulties. Therefore, taking overall considerations, we decided to adopt the existing approach and look forward to Scrcpy's native support for an interaction control bar in the future.
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
### Some devices can see screenshots after connecting but cannot operate
2023-10-21 07:38:45 +02:00
2023-10-24 15:28:53 +02:00
> Note: For Xiaomi phones in particular, it requires not only enabling USB debugging but also enabling USB debugging (Security Settings), which is to allow modifying permissions or simulating clicks via USB debugging.
2023-10-21 07:38:45 +02:00
2023-10-24 15:28:53 +02:00
Please refer to the detailed instructions under [Reasons why mouse and keyboard do not work](https://github.com/Genymobile/scrcpy/blob/master/FAQ.md#mouse-and-keyboard-do-not-work)
2023-10-21 07:38:45 +02:00
2023-10-24 15:28:53 +02:00
### Downloading prompts antivirus detection causing unable to download normally
2023-10-21 15:40:13 +02:00
2023-10-24 15:28:53 +02:00
> After feedback, Windows Defender may occasionally block the software packages from being downloaded due to lack of certificate signing. You can try the following solutions:
2023-10-21 15:40:13 +02:00
2023-10-24 15:28:53 +02:00
1. Open `Windows Security Center`.
2. Select `Virus & threat protection`.
3. In the `Virus & threat protection settings`, click `Manage settings`.
4. Find `Real-time protection`, you can try clicking Disable if permission allows. If unable to disable real-time protection, please skip this step.
5. Scroll down the page, find `Exclusions`, click `Add or remove exclusions`.
6. Add the folder path where you download the software packages as an exclusion item, i.e. add the folder to the `Excluded list`.
2023-10-21 15:40:13 +02:00
2023-10-24 15:28:53 +02:00
### Failed to get device list or error when starting mirroring/recording
2023-10-23 02:53:05 +02:00
2023-10-24 15:28:53 +02:00
> This is generally caused by an incorrect path for `Adb` or `Scrcpy`, you can try the following solutions:
2023-10-23 02:53:05 +02:00
2023-10-24 15:28:53 +02:00
1. In the menu, select `Preferences` and then click the reset configuration button in the top right corner of `Global Mode`.
2. Go to the `Device List` page and try enabling mirroring again.
3. Make sure you have downloaded and installed the latest version of `Escrcpy`.
4. Press `Ctrl` + `Shift` + `I` to open the developer tools and check for any error messages.
5. If there are errors, take a screenshot and submit your issue with the screenshot on the [Feedback Issues](https://github.com/viarotel-org/escrcpy/issues) page.
2023-10-23 02:53:05 +02:00
2023-10-24 15:28:53 +02:00
### macOS window minimized to system tray icon not found
2023-10-24 15:28:53 +02:00
> This is generally caused by too many icons in the system tray overflowing and hiding the Escrcpy icon. Try using the following tools:
- [iBar](https://www.better365.cn/ibar.html)
- [Bartender](https://www.macbartender.com/)
2023-10-24 15:28:53 +02:00
## Getting Help
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
> As this is an open source project run entirely by donations, support is limited and updates may not be on a fixed schedule.
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
- Issues: [Submit Feedback](https://github.com/viarotel-org/escrcpy/issues)
- Email: viarotel@qq.com
- WeChat: viarotel
- QQ: 523469508
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
## Acknowledgements
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
This project would not be possible without the following open source projects:
2023-10-15 18:20:23 +02:00
- [scrcpy](https://github.com/Genymobile/scrcpy)
- [adbkit](https://github.com/DeviceFarmer/adbkit)
- [electron](https://www.electronjs.org/)
2023-10-24 15:28:53 +02:00
## Support the Project
2023-10-15 18:20:23 +02:00
2023-10-24 15:28:53 +02:00
> If this project has helped you, you can buy me a coffee to keep me energized and improving the project! 😛
2023-10-15 18:20:23 +02:00
<div style="display:flex;">
<img src="https://p9-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/79dcbc40246743e2b6870419e88e0392~tplv-k3u1fbpfcp-watermark.image?" alt="viarotel-wepay" style="width: 36%;">
<img src="https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/1e5e69b83dd746deade95afd4a6864ec~tplv-k3u1fbpfcp-watermark.image?" alt="viarotel-alipay" style="width: 36%;">
</div>