Skip to content

Releases

0.2.0

Choose a tag to compare

@github-actions github-actions released this 19 Jul 17:18
5d17646

What's changed

Highlights

  • 🎉 scrcpy 4.x support — Screen mirroring works again after upgrading scrcpy to 4.0 (#9). The extension now supports both scrcpy 3.x and 4.x wire formats.
  • 🏗️ Strategy-pattern protocol engines — Wire-protocol parsing moved into version-specific engines (V3ProtocolEngine, V4ProtocolEngine) selected by a factory. Adding support for a future v5 is a 2-step change: implement the engine, add a case 5: to the factory.

Changed

  • scrcpy v4.x protocol support - The extension now supports both scrcpy 3.x and 4.x wire formats. Fixes screen mirroring not displaying after upgrading to scrcpy 4.0 (#9).
  • Strategy-pattern protocol engines - Wire-protocol parsing is now encapsulated in src/protocol/ engines (V3ProtocolEngine, V4ProtocolEngine) selected by createProtocolEngine(version). Adding support for a future v5 is a 2-step change: implement the engine, add a case 5: to the factory. No edits to ScrcpyConnection required.
  • scrcpy v3.x backwards compatibility - The legacy v3.x wire format (codec_id + width + height header, CONFIG at bit 63) is now explicitly supported via V3ProtocolEngine. Previously the extension assumed v3 format unconditionally; now it dispatches based on the installed scrcpy version.
  • Video stream parser rewritten - Implements the new scrcpy v4.x session-packet wire format introduced in PR Genymobile/scrcpy#6159. The initial codec_id is now followed by a 12-byte SESSION packet (instead of the old 8-byte width|height block), and mid-stream SESSION packets are emitted on encoder resets (rotation, capture reset, virtual-display resize).
  • PTS/flags bit positions shifted - In v4.x the new SESSION flag occupies bit 63, pushing CONFIG down to bit 62 and KEY_FRAME down to bit 61 (previously bits 63 and 62). Applies to both video and audio media packets. v3.x engines use the legacy positions.
  • Server arg is now version-dependent - The stream-meta arg is send_stream_meta for v4.x servers, send_codec_meta for v3.x. Each engine exposes the right name via ProtocolEngine.serverStreamMetaArg.

Added

  • src/protocol/ package - ProtocolEngine interface, CursorBuffer (extracted), V3ProtocolEngine, V4ProtocolEngine, and createProtocolEngine factory.
  • PACKET_FLAG_SESSION/PACKET_FLAG_CONFIG/PACKET_FLAG_KEY_FRAME constants exported from ScrcpyProtocol.ts, plus the v4.x control message types (RESET_VIDEO, CAMERA_SET_TORCH, CAMERA_ZOOM_IN/OUT, RESIZE_DISPLAY, SCAN_FILE) for future use.
  • Protocol engine tests - test/unit/protocol/ covers V3, V4, and factory dispatch in isolation (no socket mocking required).
  • Clear error for unsupported scrcpy versions - The factory throws ToolNotFoundError with an upgrade message for scrcpy 2.x and older. Previously these versions silently failed with a blank screen.

Full Changelog: 0.1.4...0.2.0

0.1.4

Choose a tag to compare

@github-actions github-actions released this 18 Dec 21:57
0f6e461

What's Changed

Full Changelog: 0.1.3...0.1.4

0.1.3

Choose a tag to compare

@github-actions github-actions released this 16 Dec 20:33
2fb0925

What's Changed

  • Performance and lifecycle optimizations by @izantech in #3
  • feat: improve settings UX with directory pickers and tool warnings by @izantech in #4
  • refactor: centralize state management with AppStateManager by @izantech in #5

New Contributors

Full Changelog: 0.1.2...0.1.3