Skip to content

Screen Mirroring

Caspian-Explorer edited this page Feb 25, 2026 · 1 revision

Screen Mirroring

View and interact with the emulator screen inside VS Code.

Opening the Screen

  • Right-click an emulator in Connected Devices → Show Emulator Screen
  • Or via command: Caspian: Show Emulator Screen

How It Works

The extension captures the screen using adb shell screencap, encodes it as base64, and sends it to a webview panel. This provides approximately 1 frame per second.

For better performance, install scrcpy — the extension will auto-detect it.

Touch Input

Click anywhere on the screen image to send a tap event to the emulator. The click coordinates are mapped to the device's screen resolution.

Navigation Buttons

Three buttons below the screen:

  • Back — sends KEYEVENT_BACK (key 4)
  • Home — sends KEYEVENT_HOME (key 3)
  • Recents — sends KEYEVENT_APP_SWITCH (key 187)

Installing scrcpy

For higher-quality mirroring:

Platform Command
Windows winget install Genymobile.scrcpy
macOS brew install scrcpy
Linux sudo apt install scrcpy

Or set a custom path: caspian.scrcpyPath

Clone this wiki locally